Developing Plugin: Call to undefined function add_menu_page()
-
<?php //Set Up Class if (!class_exists("B2BannerRotator")) { class B2BannerRotator { function B2BannerRotator() { //constructor } //Admin Views function Main() { return 0; } } } //Create new instance of class if (class_exists("B2BannerRotator")) { $b2_banner_rotator = new B2BannerRotator(); } //Actions and Filters if(isset($b2_banner_rotator)){ // Administration Actions add_submenu_page(__FILE__, "Banner Rotator", "Banner Rotator", 6, __FILE__, array($b2_banner_rotator, "Main")); } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Developing Plugin: Call to undefined function add_menu_page()’ is closed to new replies.