BuddyDev

Search

Is there a way to remove menu items from mediapress like with buddypress?

  • Keymaster
    (BuddyDev Team)
    Posts: 21083
    Brajesh Singh on #5739

    Hi Jaume,
    For future, you can use the following:-

    
    
    function mpp_custom_disallow_gallery_editing ( $allow, $gallery, $user_id ) {
    
    	if ( ! is_super_admin() ) {
    		$allow = false;
    	}
    
    	return $allow;
    }
    add_filter( 'mpp_user_can_edit_gallery', 'mpp_custom_disallow_gallery_editing', 10, 3 );
    
    

    It will have issues on the Gallery edit page for now(Throwing notice).

  • Participant
    Level: Enlightened
    Posts: 40
    Jaume Aragay on #5742

    Thanks Brajesh!

    I’ll stay with the CSS solution by now, then.

    If I were to use the the functions you mentioned on a prior post, would it be something like

    add_action( ‘mpp_setup_globals’, ‘mpp_my_custom_setup_gallery_nav’, 40 );

    using mpp_remove_gallery_nav_item and mpp_remove_media_nav_item?

You must be logged in to reply to this topic.

This topic is: not resolved