Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Agregar clases de rol al body en WordPress

add_filter( 'body_class', function( $classes ){
    foreach( (array) wp_get_current_user()->roles as $role ){
        $classes[] = "role-$role";
    }
    return $classes;
});
Comment

PREVIOUS NEXT
Code Example
Php :: php-like-system-with-notification-using-ajax-jquery 
Php :: php blob to string 
Php :: php version 7.4 
:: laravel 8 template favicon 
:: no cache on browser back php 
:: laravel read csv 
Php ::  
:: how to put external file in laravel listener class 
:: LongestWord 
Php :: Call to undefined method AppModelsespece::links() laravel 8 
Php :: Laravel advanced sub queries 
Php :: get.krnl.key 
:: phpmyadmin account locked 
Php :: php pop up message 
Php :: Convert Array Value Session Value To String PHP 
Php :: sail laravel mix hot 
Php :: larqavel migration 
Php :: laravel migration unknown column type double requested 
Php :: Laravel 9.x Target class does not exist error at login application 
:: CausesActivity trait 
Php ::  
::  
Php ::  
Php :: How to create an Invoice with watermark FPDF 
::  
Php ::  
:: Sorting Products by Custom Meta Fields 
Php ::  
Php ::  
:: laravel DomPDF live preview 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =