pmpro_body_class

Add PMPro page names to the BODY class.

Description

pmpro_body_class( $classes ); 

Parameters (1)

0. $classes
The classes.

Usage

  1. if ( !function_exists( 'pmpro_body_class' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/init.php'; 
  3.  
  4. // The classes. 
  5. $classes = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pmpro_body_class($classes); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/init.php  
  1. function pmpro_body_class($classes) 
  2. global $pmpro_body_classes; 
  3.  
  4. if(is_array($pmpro_body_classes)) 
  5. $classes = array_merge($pmpro_body_classes, $classes); 
  6.  
  7. return $classes;