Open lucrus73 opened 5 years ago
hi Lucrus 73, I created a new class and moved everything inside, I also made improvements to the column removal. I've committed
Unfortunately that did not fix the bug.
hi I discovered the problem, the functions waddaprice_custom_post_type () and custom_waddaprice_column () must be declared static or outside the class, if you don't have urgency for now don't commit with these changes
I think the problem is more likely here: you should call add_action in a function inside the Whaddaprice_panel class and use $this as first element of the callback array, instead of the class name.
If I do as I said the problema goes away.
In the current version I get:
PHP Deprecated: Non-static method Whaddaprice_Admin::waddaprice_custom_post_type() should not be called statically in /wp-includes/class-wp-hook.php on line 286 PHP Stack trace: