• Resolved Zoker

    (@zoker)


    Hi there,

    There is an notification in backend, which says:

    You are logged in as a Membership Admin user, you will therefore see all protected content on this site.

    Its very helpful to read this once, but it does bug me reading it on all backend pages all the time.

    So can you please add a option to dismiss it or turn it off in the options?

    Thank you
    Zoker

    https://www.ads-software.com/plugins/membership/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi Zoker,

    There is already a feature request created for this feature and this feature may be added in future version of plugin but We don’t publish ETAs to prevent disappointment if a deadline is missed(which in plugin development quite a frequent occurrence!).

    In the meanwhile you can hide this notice by removing the below code from on the line number 227 from the following Membership plugin file.

    Membership plugin file:
    membership/membershipincludes/classes/membershipadmin.php

    Code to be removed:

    if($user->has_cap('membershipadmin')) {
    	// If the user is a membershipadmin user then we can add in notices
    	add_action('all_admin_notices', array(&$this, 'show_membership_status_notice'));
    }

    Note: You are making changes in the plugin file and these changes will be overwritten and lost when you update the plugin and you will have to make these again after plugin updation.

    Alternatively you can just add the following CSS code in the admin area of your site to hide the notice using the following plugin.

    https://www.ads-software.com/plugins/add-admin-css

    .update-nag {
         display: none;
    }

    Cheers,
    WPMU DEV

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi Zoker,

    Alternatively you can also add the following code in the functions.php file of your child theme to remove the admin notice.

    function remove_custom_admin_actions(){
      global $membershipadmin;
      remove_action('all_admin_notices', array($membershipadmin, 'show_membership_status_notice'));
    }
    add_action( 'admin_init', 'remove_custom_admin_actions', 99);

    Cheers,
    WPMU DEV

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deactivating the backend admin notification’ is closed to new replies.