bfa_icon_class

Filter the icon class.

Description

apply_filters( 'bfa_icon_class', (unknown) $class, (string) $name ); 

Parameters (2)

0. $class (unknown)
The class.
1. $name (string)
The name.

Usage

To run the hook, copy the example below.
  1. $class = apply_filters( 'bfa_icon_class', $class, $name ); 
  2.  
  3. if ( !empty( $class ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bfa_icon_class callback 
  2. function filter_bfa_icon_class( $class, $name ) { 
  3. // make filter magic happen here... 
  4. return $class
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bfa_icon_class', 'filter_bfa_icon_class', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bfa_icon_class', 'filter_bfa_icon_class', 10, 2 ); 

Defined (1)

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

/better-font-awesome-library/better-font-awesome-library.php  
  1. $class = apply_filters( 'bfa_icon_class', $class, $name );