BuddyDev

Search

[Resolved] MediaPress Featured Content

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #15133

    Hi, is there a way to show the set featured/remove featured button to super admin only. The default config shows the button to users only.
    Any help is appreciated. 🙂

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #15134

    I want to be able to visit user pages as super admin and set featured/remove featured media and not allow users access to this button.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #15135

    Hello Axel,

    Thank you for posting. Try this following code in your active theme “functions.php” file.

    
    function buddydev_modify_mpp_featured_content_permission( $can ) {
    	return is_super_admin();
    }
    add_filter( 'mppftc_user_can_mark_item_featured', 'buddydev_modify_mpp_featured_content_permission' );
    

    and let me know if it works or not.

    Thank You
    RAvi

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #15137

    Thank you RAvi, that worked! 🙂

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #15139

    Hello Axel,

    Thank you for the acknowledgement. I am glad that I could help.

    Thank You
    Ravi

The topic ‘ [Resolved] MediaPress Featured Content’ is closed to new replies.

This topic is: resolved