Skip to content

Instantly share code, notes, and snippets.

@scofennell
Created October 2, 2018 19:39
Show Gist options
  • Save scofennell/da57c8ee291ac77dab81ff7e023f2bc7 to your computer and use it in GitHub Desktop.
Save scofennell/da57c8ee291ac77dab81ff7e023f2bc7 to your computer and use it in GitHub Desktop.
<?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