/**

* Add menu item in Setting menu in admin menu

*/

function all_settings_link() {

add_options_page(__(‘All Settings’), __(‘All Settings’), ‘administrator’, ‘options.php’);

}

add_action(‘admin_menu’, ‘all_settings_link’);

 

/**

* Add menu item in Users menu in admin menu

*/

add_action(‘admin_menu’, ‘my_users_menu’);

function my_users_menu() {

add_users_page( __(‘Update User’),__(‘Update User’), ‘manage_options’, ‘mypage’, ‘my_plugin_options’);

}

 

/**

* Add menu item in Options menu in admin menu

*/

function my_plugin_options() {

if ( !current_user_can( ‘manage_options’ ) ) {

wp_die( __( ‘You do not have sufficient permissions to access this page.’ ) );

}

echo ‘‘;

}

Leave a Reply