w3tc_capability_config_save
The W3 Total Cache w3tc capability config save hook.
Description
Parameters (1)
- 0. $manage_options (string) =>
'manage_options'
- The manage options.
Usage
- To run the hook, copy the example below.
- $manage_options = apply_filters( 'w3tc_capability_config_save', $manage_options );
- if ( !empty( $manage_options ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the w3tc_capability_config_save callback
- function filter_w3tc_capability_config_save( $manage_options ) {
- // make filter magic happen here...
- return $manage_options;
- };
- // add the filter
- add_filter( 'w3tc_capability_config_save', 'filter_w3tc_capability_config_save', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'w3tc_capability_config_save', 'filter_w3tc_capability_config_save', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /Generic_AdminActions_Default.php
- $capability = apply_filters( 'w3tc_capability_config_save',