Ejemplo n.º 1
0
 /**
  * Adds corresponding body classes when need be.
  *
  * @since 3.5
  * @filter body_class
  *
  * @param array $classes The array of body classes.
  * @return array The extended array of body classes.
  */
 public function add_body_classes($classes)
 {
     if (class_exists('BuddyPress') && filter_input(INPUT_GET, 'action') == 'registeruser' && membership_is_registration_page()) {
         add_filter('bp_is_blog_page', '__return_false');
         $this->_add_filter('bp_is_current_component', 'determine_bp_component', 10, 2);
         $classes = array_unique(bp_get_the_body_class($classes));
     }
     return $classes;
 }
/**
 * Customize the body class, according to the currently displayed BP content.
 *
 * @since 1.1.0
 */
function bp_the_body_class()
{
    echo bp_get_the_body_class();
}
Ejemplo n.º 3
0
 public static function buddypress_class()
 {
     $classes = array();
     $classes = bp_get_the_body_class();
     return $classes;
 }