Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1299987

    Me again

    Is there a PHP Snippet to Hide the Dashboard Menu PORTFOLIO EINTRAEGE as this is not needed.
    Something like
    add_action( ‘admin_menu’, ‘dashboard_remove_menu_pages’)
    function dashboard_remove_menu_pages() {
    remove_menu_page(‘portfolio.php’);
    }

    Unfortunately not working for me. Any ideas?

    #1300238

    Hey Stephan,

    Please try this function instead:

    function remove_portfolio_item_option(){
       remove_menu_page( 'edit.php?post_type=portfolio' );
    }
    add_action( 'admin_menu', 'remove_portfolio_item_option', 999 );

    Best regards,
    Rikard

    #1300336

    This is it! Thank you
    ;-)

    #1300341

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Menupunkt ausblenden / Hide Menu PORTFOLIO EINTRÄGE’ is closed to new replies.