Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Michael Kuen
    Participant

    Good day,

    Hope this email finds you well.

    I would like to remove the shortcoder menu item from wp-admin backend.

    I am currently using code snippets. As an example, For me to hide the dashboard, i use “remove_menu_page( ‘index.php’ ); // Dashboard + submenus”

    What is the code I can use to hide shortcoder from the wp-admin menu

    Regards,
    Michael

    Hi Michael,

    You can use below code.

    function sc_remove_menu_item() {
        remove_menu_page( 'edit.php?post_type=shortcoder' );
    }
    add_action( 'admin_menu', 'sc_remove_menu_item', 99 );

    Thanks,
    Aakash

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter