Search
 
SCRIPT & CODE EXAMPLE
 

PHP

add user role to wp admin page css

function wpa66834_role_admin_body_class( $classes ) {
    global $current_user;
    foreach( $current_user->roles as $role )
        $classes .= ' role-' . $role;
    return trim( $classes );
}
add_filter( 'admin_body_class', 'wpa66834_role_admin_body_class' );
Comment

PREVIOUS NEXT
Code Example
Php :: composer in serveur ionos 
Php :: sendinblue send email 
Php :: skäller västgötaspetsar 
Php :: implode (PHP 4, PHP 5, PHP 7, PHP 8) implode — Join array elements with a string 
Php :: $this-uri-uri_to_assoc(5); 
Php :: php get last 4 digits of string 
Php :: how to validate email or phone number single parameter request in laravel 
Php :: ubuntu add phpstorm to launcher 
Php :: désinfecte email php 
Php :: how can i check that a json file already has something inside 
Php :: yii2 active form date input 
Php :: php shell_exec must be connected to a terminal 
Php :: laravel blade all syntex description 
Php :: php doctrine findby greater than 
Php :: foreach loog in php 
Php :: php discord webhook sender 
Php :: ring create an RSA key from PEM encoded string 
Php :: Sorting Products by Custom Meta Fields 
Php :: wc php free shipping function 
Php :: PHP SSRF Wrapper/URL Schema 
Php :: php pesos en letras rutina 
Php :: how to check my server use cgi, fcgi or fpm. 
Php :: $score = $score + $bonus Score; return $score; php 
Php :: switch php version ubuntu 20.04 site:stackoverflow.com 
Php :: tina4 generate crud 
Php :: Save custom input field value into cart item 
Php :: adding field to array on condition laravel 
Php :: get datetime of excel cell in codeigniter 
Php :: Indexed Array 
Php :: codeigniter 4 base_url 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =