WordPress disable ‘Install Themes’ tab

Can someone help me disable the Install Themes link from the WordPress back-end?

Related posts

Leave a Reply

1 comment

  1. You can essentially ‘block’ the capability install_themes using;

    function __block_caps( $caps, $cap )
    {
        if ( $cap === 'install_themes' )
            $caps[] = 'do_not_allow';
        return $caps;
    }
    add_filter( 'map_meta_cap', '__block_caps', 10, 2 );