w3tc_extension_plugin_links_<extension>

The W3 Total Cache w3tc extension plugin links hook.

Description

apply_filters( 'w3tc_extension_plugin_links_<extension>', (unknown) $extra_links ); 

Parameters (1)

0. $extra_links (unknown)
The extra links.

Usage

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

Defined (1)

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

/inc/options/extensions/list.php  
  1. $extra_links = apply_filters( "w3tc_extension_plugin_links_{$extension}", $extra_links );