Reply To: Need to hide or disable the buttons for settings and announcements


Home Forums Front End PM PRO Need to hide or disable the buttons for settings and announcements Reply To: Need to hide or disable the buttons for settings and announcements

#27159
shamim
Keymaster

You can add following code in your theme’s (child theme’s if you are using) functions.php

add_filter( 'fep_menu_buttons', function( $menu  ){
    unset( $menu['settings'], $menu['announcements']  );
    return $menu;
}, 99);

It will remove for all users. If you want to hide for certain role you can let me know from which role you want to hide.