The simplest way would be to hide the notifications via CSS, see below:
function hide_update_msg_non_admins(){
if (!current_user_can( 'manage_options' )) { // non-admin users
echo '<style>#setting-error-tgmpa>.updated settings-error notice is-dismissible, .update-nag, .updated { display: none; }</style>';
}
}
add_action( 'admin_head', 'hide_update_msg_non_admins');
A more detailed answer can be found here.
Related Posts:
- Activate a plugin through PHPMyAdmin or FTP?
- Get a list of all WordPress.org Plugins?
- Where can I find a schema of wordpress plugin core architecture?
- How do I make my plugin load before the headers are output so I can redirect wordpress?
- Sell one unique item with Woocommerce? [closed]
- Make thumbnails in woocommerce replace the main image instead of opening fancybox
- Content generator for development site [closed]
- Add Rewrite Rule for custom page
- plugin_action_links Filter Hook Deprecated?
- PHP Deprecated: Non-static method should not be called statically
- Why can I not use a class constant as text domain?
- Function to Set Product type in Woocommerce [closed]
- how does wp.media javascript library work?
- Updating WooCommerce variable product stock issue
- Intercepting a add_action
- Include files for a plugin not including
- Missing argument 2 for wpdb::prepare() Issue
- flush rewrite rules doesn’t flush them (still got 404)
- Adding rich text editor to my plugin
- White text on white background in TinyMCE when wp_editor is called in WP 3.9
- Change the $parent_file of a plugin page
- Plugin to book course and pay online for it
- Exclude plugins on Main site on Multisite installation?
- Escape when echoed
- add_meta_box (Will display only in specific page admin WordPress)
- Why is wp-cron only executing on page visit?
- WP_Query ordering numbers as letters
- WordPress Automatic Plugin Update Renames Plugin Directory
- JQuery not working in my plugin [closed]
- Lightbox Plus ColorBox plugin and auto playing YouTube video
- Can’t send mails using contact plugin [closed]
- RW Meta Box ,Problem setting post title
- When to call add_filter
- How to stop or remove an action being called inside a function of an extended class
- Date calculations from 2 custom fields
- How to debug error message: Cannot modify header information
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- Easiest way to add dropdown to a page
- WPBakery JS composer unused css [closed]
- Adding a new field to the address field type in gravity forms
- Show admin notice on incorrect value on form field
- Removing included CSS file that doesn’t exist
- How can I make my metabox appear?
- How to load wp_editor via AJAX
- Setup page on first login on multisite
- Magic Fields gives error File ___ doesn’t exist?
- Adding (image) caching to my Tumblr widget
- Help in using SEO Plugins: SEO Ultimate And Yoast SEO Plugin
- Setting Up PHP Workflow in WordPress
- do_action Nested List
- Can inactive WordPress plugins still load scripts?
- Plugin main file is constantly been fired on every website visit
- How to set “split_on_numerics” to false in ElasticSearch mapping using ElasticPress? (for proper SKU search in WooCommerce) [closed]
- Where should custom post types be registered in a plugin?
- plugin uninstall function drop the tables, but shows errors on admin
- How to use template inside plugin shortcode with variables for big HTML code
- Woocommerce – WordPress Roles & Capabilities
- Changing the Organize Series Listing Pages
- Way to send multiple values for column to MySQL?
- Changing location of “About me” section
- What’s the right way to implement functions in footer.php
- Getting a list of the published posts
- Showing the results of a search (made through a 3rd party search provider) inside an article
- Do rewrites added with add_rewrite_rule() persist after plugin deletion?
- wp_mail – using a custom field value
- WP e-Commerce Gold Cart with Plugin Built Into Theme
- How to add a custom form to a plugin’s setting page
- Edit all $wp_scripts at once to $in_footer = false
- Upload Javascript and json webpage to wordpress
- woocommerce – adding wrapper around custom made woocommerce form fields
- custom post type get_posts() function not work
- Single Event page based on scope and use of PLACEHOLDER in PHP template file
- Create multiple posts when a custom post is created
- Different theme menu
- How can i redirect a register user to pay a specific amount before he or she have access to loggin to the dashboard?
- How to Upload images to a custom folder in upload folder using media uploader
- Remove metatag from a particular page
- deactivate WPBakery Page Builder license [closed]
- How to create WordPress nonce in the foreach loop?
- Plugin JavaScripts Confliction
- submit form data to wordpress existing database table using my plugin
- Plugin is not getting updated
- API page return Header 500 but Work
- apply_filters to content but ignore shortcodes
- display user input using ajax in wordpress
- Load wordpress enviroment for external content?
- Getting 404 page not found error while trying to access add new plugin / themes
- Plugin Install screeen not found
- WordPress plugin ajax post parameter
- Award points if a specific custom taxonomy is selected – Cubepoints
- How to disable register and reset the password from WordPress admin panel?
- formatting the way posts show up
- Suggest me plugin/widget (sidebar) for Sharing posts [closed]
- wordpress themes and plugin customization
- Install theme as part of a plugin
- Oxygen plugin wordpress stuck in loading sequence forever when trying to edit a page [closed]
- plugin doesn’t retrieve data from database
- I want to create a search option for CPT using plugin. The search options should search for categories and tags
- Install an external plugin from within the current plugin?
- WP Plugin: How to avoid db access for each comment?