Answers:
Answer #1go to wp-content ->plugin->make a folder rahul
add_action( \\'admin_menu\\', \\'my_first_menu\\' );
function my_first_menu(){
add_menu_page( \\'Browser Title\\', \\'Menu Title\\', \\'manage_options\\', \\'rahul/myplugin-admin.php\\', \\'\\', plugins_url( \\'rahul/images/logo.png\\' ), 6 );
}
add_action( \\'admin_menu\\', \\'my_first_menu\\' );
function my_first_menu(){
add_menu_page( \\'Browser Title\\', \\'Menu Title\\', \\'manage_options\\', \\'rahul/myplugin-admin.php\\', \\'\\', plugins_url( \\'rahul/images/logo.png\\' ), 6 );
}
Answer #2Go to wp_content->plugin->folder name(rhaul)
and create a file name myplugin-admin.php (you can choose any name)
add_action( \\'admin_menu\\', \\'my_first_menu\\' );
function my_first_menu(){
add_menu_page( \\'Browser Title\\', \\'Menu Title\\', \\'manage_options\\', \\'rahul/myplugin-admin.php\\', \\'\\', plugins_url( \\'rahul/images/logo.png\\' ), 6 );
}
and create a file name myplugin-admin.php (you can choose any name)
add_action( \\'admin_menu\\', \\'my_first_menu\\' );
function my_first_menu(){
add_menu_page( \\'Browser Title\\', \\'Menu Title\\', \\'manage_options\\', \\'rahul/myplugin-admin.php\\', \\'\\', plugins_url( \\'rahul/images/logo.png\\' ), 6 );
}
Previous Question | Next Question |
Why add_action() function not work in member function in wordpress? | How to use time ago function on wordpress posts? |