<plugin_name>-<current_tab>_settings_subtabs_array
The WooCommerce Predictive Search LITE plugin name current tab settings subtabs array hook.
Description
Parameters (1)
- 0. $array (array) =>
array()
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( '{$plugin_name}-{$current_tab}_settings_subtabs_array', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the <plugin_name>-<current_tab>_settings_subtabs_array callback
- function filter_plugin_name_current_tab_settings_subtabs_array( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( "{$plugin_name}-{$current_tab}_settings_subtabs_array", 'filter_plugin_name_current_tab_settings_subtabs_array', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( "{$plugin_name}-{$current_tab}_settings_subtabs_array", 'filter_plugin_name_current_tab_settings_subtabs_array', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /admin/admin-init.php
- $subtabs = apply_filters( $this->plugin_name . '-' . $current_tab . '_settings_subtabs_array', array() );