Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

filter wordpress

function wporg_css_body_class( $classes ) {
    if ( ! is_admin() ) {
        $classes[] = 'wporg-is-awesome';
    }
    return $classes;
}
add_filter( 'body_class', 'wporg_css_body_class' );
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #filter #wordpress
ADD COMMENT
Topic
Name
2+7 =