Created
October 2, 2018 19:39
-
-
Save scofennell/da57c8ee291ac77dab81ff7e023f2bc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BodyClass extends Base { | |
public function __construct() { | |
$this -> conditionals = get_boilerplate() -> conditionals; | |
add_filter( 'body_class', array( $this, 'has_post_thumbnail' ) ); | |
add_filter( 'body_class', array( $this, 'is_singular' ) ); | |
add_filter( 'body_class', array( $this, 'admin_bar' ) ); | |
add_filter( 'body_class', array( $this, 'widget_areas' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment