I am trying to add an options page to my plugin and I am using a hook that calls a method of a class. How do I also make this callback reference the method inside this class. Here is the code that I have for it so far.
class WordPress_Admin_Config_Class { public function load_options_page() { add_options_page( "My Plugin", "My Plugin", "activate_plugins", "my-plugin", "load_options_page_callback"); } public function load_options_page_callback() { echo "Hello World"; } }
0 Answers
There is no answer to this question yet. If you know the answer or can offer some help, please use the form below.
Related Questions
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String