add sidebar menu option wp

Solutions on MaxInterview for add sidebar menu option wp by the best coders in the world

showing results for - "add sidebar menu option wp"
Alexandre
29 Jul 2020
1/**
2 * Register a custom menu page.
3 */
4function wpdocs_register_my_custom_menu_page() {
5    add_menu_page(
6        __( 'Custom Menu Title', 'textdomain' ),
7        'custom menu',
8        'manage_options',
9        'myplugin/myplugin-admin.php',
10        '',
11        plugins_url( 'myplugin/images/icon.png' ),
12        6
13    );
14}
15add_action( 'admin_menu', 'wpdocs_register_my_custom_menu_page' );
16