Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to remove annoying plugin notification in wordpress

/** This code may be used in functions.php, wp-config.php, or used to create an mu-plugin
* The purpose of the code is to remove all the anoying popups in WordPress
*/

add_action('admin_enqueue_scripts', 'ds_admin_theme_style');
add_action('login_enqueue_scripts', 'ds_admin_theme_style');
function ds_admin_theme_style() {
	if (!current_user_can( 'manage_options' )) {
		echo '<style>.update-nag, .updated, .error, .is-dismissible { display: none; }</style>';
	}
}
Comment

PREVIOUS NEXT
Code Example
Php :: laravel get file in public folder 
Php :: php week of a date 
Php :: laravel validation image or file 
Php :: passing parameters with route keyword in blade laravel 
Php :: get ip address of client php 
Php :: run a php project 
Php :: laravel query builder get last insert id 
Php :: php set status code 
Php :: bootstrap pagination laravel 
Php :: check for headers laravel 
Php :: laravel create request 
Php :: laravel display old value 
Php :: php print all woocommerce products 
Php :: image upload in laravel 
Php :: symfony set timezone 
Php :: using where like in laravel 8 
Php :: laravel eloquent get specific columns using with function 
Php :: laravel validation in controller 
Php :: foreach ph 
Php :: how to show image from php 
Php :: Remove All Spaces Out of a String in PHP 
Php :: Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in 
Php :: adminlte 3 laravel 
Php :: return two variables php 
Php :: where in laravel 
Php :: calculate percentage of amount in php 
Php :: php implode 
Php :: laravel validation custom message 
Php :: query relationships laravel and select some columns 
Php :: sub menu for post type in wordpress 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =