Return to Snippet

Revision: 30405
at August 13, 2010 06:44 by curtismchale


Initial Code
// add classes to post_class();
// add more name to $classes[] = 'your-class-name';
add_filter('post_class', 'sfn_add_post_class');

function sfn_add_post_class( $classes ) {
    $classes[] = 'your-class-name';
    
    return $classes;
} // end sfn_add_post_class

Initial URL

                                

Initial Description

                                

Initial Title
Add to post_class();

Initial Tags

                                

Initial Language
PHP