Support

Home Forums Event Espresso Premium Disable Update Notifications

Disable Update Notifications

Posted: June 27, 2013 at 11:01 am

Viewing 1 reply thread


Jason MacEntee

June 27, 2013 at 11:01 am

Hi
Been trying to hide the update notifications and found this topic but it is not working properly

https://eventespresso.com/topic/disable-update-notifications-for-eventmanagers/

Anyway, i did it directly on the Notifications Div For event Espresso Line 381 on the file

wp-content/plugins/event-espresso/class/pue/pue-client.php

<em>redacted – Event Espresso support team – LOC</em>

It hides the div but for all the users including the admin user, does anyone knows how to hide this just to non admin users?


Dean

June 28, 2013 at 2:16 am

Hi,

That code should be added to the themes functions.php file. It works correctly for me, to hide the following message from subscribers but allow admisn to see it

There is an automatic update for Event Espresso available but your Site License Key has not been set. Please go to the Event Espresso General Settings page to set your Site License Key. You can locate your license key from your account on the Event Espresso website.

Is this not the message you were referring to?

function remove_pu() {
    if(!current_user_can('administrator')) { ?>
        <style>
        #pu_dashboard_message { display:none; }
        </style>
  <?php }
}
add_action('admin_footer', 'remove_pu');
Viewing 1 reply thread

The support post ‘Disable Update Notifications’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso