bfln_load_plugin

The plugin loads another javascript file(one more HTTP request), and causes multiple ajax requests to server.

Description

apply_filters( 'bfln_load_plugin', (unknown) $load_plugin ); 

You can use the below filter to conditionaly load the plugin. E.g: load the plugin based on user roles!! just return false, from your hooked function and the plugin wouldn't be loaded

Parameters (1)

0. $load_plugin (unknown)
The load plugin.

Usage

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

Defined (2)

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

/bp-fb-like-notification.php  
  1. $load_plugin = apply_filters( 'bfln_load_plugin', $load_plugin ); 
  1. $load_plugin = apply_filters( 'bfln_load_plugin', $load_plugin );