Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Disable Update Notifications | Event Espresso - Staging Server

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

http://staging.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

<div class=”updated” style=”padding:15px; position:relative; <?php if (!current_user_can(‘administrator’)): ?>display:none; <?php endif; ?>” id=”pu_dashboard_message”><?php echo $msg ?>
<?php _e(“Dismiss”) ?>
</div>

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

  • Support Staff

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 - Staging Server