Hide Announcement Box for Users


Home Forums Front End PM PRO Hide Announcement Box for Users

This topic is: Not Resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11398
    Ana Benedict
    Participant

    Is it possible to do this please? It is not a feature I am using at this stage, and users can only message admin anyway, so it is causing some confusion.

    #11401
    shamim
    Keymaster

    add following code in your theme’s (child theme’s if any) functions.php

    add_filter('fep_menu_buttons', function( $menu ){
    	unset($menu['announcements']);
    	return $menu;
    }, 99);
    
    #11652
    Bart
    Participant

    I also would like to hide all traces of the announcement system for my end users. I have added your suggested code, but my users are still seeing: “You have 11 unread messages and 15 unread announcements”. How can I remove the part “and 15 unread announcements”?

    Attachments:
    You must be logged in to view attached files.
    #11656
    shamim
    Keymaster
    #11659
    Ana Benedict
    Participant

    Thank you for your quick reply. Could you please confirm the correct code if I want to hide two boxes, settings and announcements? I have tried a couple of options and neither is working. Thank you!

    #11683
    shamim
    Keymaster

    add following code in your theme’s (child theme’s if any) functions.php

    add_filter('fep_menu_buttons', function( $menu ){
    	unset( $menu['announcements'], $menu['settings'] );
    	return $menu;
    }, 99);
    
Viewing 6 posts - 1 through 6 (of 6 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.