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.
1 2 3 4 5 6 7 8 9 10 11 12 |
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"; } } |
Dan Edited question