Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

xymalf on "Local WAMP server says function undefined"

$
0
0
add_action( 'admin_menu', 'boj_menuexample_create_menu' );

funtion boj_menuexample_create_menu() {

add_menu_page( 'My Plugin Settings Page', 'Menu Example Settings','manage_options', _FILE_, 'boj_menuexample_settings_page', plugins_url( '/images/wp-icon.png', _FILE__));

add_submenu_page( _FILE_, 'About My Plugin', 'About', 'manage_options',_FILE_.'_about', boj_menuexample_about_page);
add_submenu_page( _FILE_,'Uninstall My Plugin', 'uninstall', 'manage_options',
_FILE_.'_uninstall', boj_menuexample_uninstall_page);

}

[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

How do I declare functions for my about and uninstall pages?


Viewing all articles
Browse latest Browse all 8245

Trending Articles