WordPress Development Question:

How to create plugin for the wordpress?

Tweet Share WhatsApp

Answer:

go 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 );
}

Download WordPress Expert PDF Read All 31 WordPress Expert Questions
Previous QuestionNext Question
Why the add_action() function not work in member function in wordpress?Will you have the ability to update my own content?