bfa_fallback_directory_path

Filter directory path.

Description

apply_filters( 'bfa_fallback_directory_path', (string) $directory_path ); 

Parameters (1)

0. $directory_path (string)
The path to the fallback Font Awesome directory.

Usage

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

Defined (1)

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

/better-font-awesome-library/better-font-awesome-library.php  
  1. $directory_path = trailingslashit( apply_filters( 'bfa_fallback_directory_path', $directory_path ) );