bp_field_css_class

Output the class attribute for a field.

Description

bp_field_css_class( (bool) $class = false ); 

Parameters (1)

0. $class — Optional. (bool) => false
Extra classes to append to class attribute. Pass mutiple class names as an array or space-delimited string.

Usage

  1. if ( !function_exists( 'bp_field_css_class' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-xprofile/bp-xprofile-template.php'; 
  3. $class = false; 
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_field_css_class($class); 
  7.  

Defined (1)

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

/bp-xprofile/bp-xprofile-template.php  
  1. function bp_field_css_class( $class = false ) { 
  2. echo bp_get_field_css_class( $class );