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:
- WooCommerce store with ~30,000 products [closed]
- Is there any record of installed plugins in the database?
- Being notified when some YouTube video in some post becomes unavailable
- Change page title from plugin
- Override dynamic_sidebar() in plugin?
- A plugin for having rel=”nofollow” in posts?
- Why is this custom taxonomy showing in the database?
- Where is the source code that makes the “all” array grabs filters in the $wp_filter?
- Upload images from custom plugin using the media modal
- Options page not displayed under Settings menu
- How can I change plugin to give access to editor user role?
- Is it possible to add an action to the currently running action?
- How to include and use custom class files in plugin?
- How can I stop a plugin being updated?
- Change settings of get_post_type_object
- How does WordPress process plugin installations?
- Embed a Google Sheet as you view it in a separate tab?
- Changing labels of status filters for post grid
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- Plugin version is not showing up in wordpress.org plugin directory
- Saving changes in wp_editor
- Social sharing toolkit is not showing on ajax load
- wordpress plugin is not activating from widget
- How can I check if on specific plugin generated page or child
- Error with third-party package: “Updating failed. Error message: The response is not a valid JSON response.” [closed]
- Transition from the pro version to the free version of the plugin
- There is any way to remove post-format filter? [closed]
- Show existing POST categories as items in the sidebar menu [closed]
- How to show only next post pagination link using wp_link_pages()
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- Retrieving Meta from Image Attachment
- Why this function not working for install database on plugin activation
- The Hook registration_errors was not called
- add_action does not call the function
- Problems With WP Bannarize Plugin [closed]
- How to create a child/addon plugin
- How to secure the release of WordPress plugins / avoid copying plugins?
- What happens if I don’t update my plugins?
- how to force tag page layout to use same as search layout?
- Disabling Wp_is_mobile from backend?
- Gutenberg Block Style CSS Class Is Not Applying on Backend
- WordPress Users authentication with Java Application
- remove_action not removing add_action from constructor
- Replacing global wp_query
- Is there a way to make the main page only display a brief description of the full article?
- how to make wordpress plugin from PersianWebToolkit? [closed]
- Limit WP code scope into plugin
- wp_get_http has been deprecated. Use WP_Http instead
- Custom search search does not work?
- WordPress custom plugin that uses woocommerce enabled payment gateway for payment [closed]
- Execute a function when the entire page is displayed
- Add custom PHP and HTML to the_content()
- Cannot read properties of undefined (reading ‘firstChild’) using photoswipe in product page
- Find Plugin by file name
- Creating an admin button that when clicked shows a popup form
- Add an action based on custom post meta field
- How to hide an option from dropdown in filter module
- Downloading a file
- $wpdb not working wordpress plugin ajax call
- how to create user profile pages and display them based on users roles
- How to change “Read More” text?
- How to use wp_editor and save its data in wp_posts table
- WordPress database problem wp_posts, primary key
- Auto trigger of popup
- Securing a plugin pop-up window
- Woocommerce – Change variations output
- WordPress Plugin PHP Not Calling Function
- how do i fixe Page Builder on a custom page?
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Do_shortcode before send email content
- How do I add languages?
- wp_enqueue_scrpts seems not to get called
- Which Membership Plugin? [closed]
- Adding featured image to post display widget
- How to Create Custom Dashboard for my Laundry Website?
- Warning: Illegal offset type in /var/www/html/wp-includes/option.php on line 1924
- Get plugin to background of page
- How to create a WordPress sandbox on a live server for website development?
- What is a good way to test that plugin upgrades have completed properly?
- Moving sidebar links to below the header menu
- get post excerpt by query
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- Deleted plugins displays error message
- Remove the ‘Press This’ Tool
- How to delete remain data in WP database after deleting custom post via admin interface
- __FILE__ in WordPress plugins
- Looking for a related post plugin which slides-in like the one at inc.com does [closed]
- which is this plugin ? [closed]
- Populate Woocommerce order notes with custom field value
- cmb2 select option output [closed]
- Woocommerce Product Add-ons – Auto-select first option
- Sync roles across several plugins
- How to write a specific url for only single page in wordpress?
- Jquery post responses 500 error after some time and lastly an 503 error
- Identifying Plugins Based on Tables [closed]
- WP Elementor Pro causing crtical failure on website
- Render CMB2 select option to post page [closed]
- How can I utilize the same “show more” functionality that I see in superuser on my own WordPress site?
- Footer option is missing in Customiser