fs_plugins_api

The NextGEN Gallery fs plugins api hook.

Description

apply_filters( 'fs_plugins_api', (bool) $false, (string) $plugin_information, (unknown) $args ); 

Parameters (3)

0. $false (bool) => false
The false.
1. $plugin_information (string) => 'plugin_information'
The plugin information.
2. $args (unknown)
The args.

Usage

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

Defined (1)

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

/freemius/includes/fs-plugin-info-dialog.php  
  1. $api = apply_filters( 'fs_plugins_api', false, 'plugin_information', $args );