Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add filter in 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: #add #filter #wordpress
ADD COMMENT
Topic
Name
1+3 =