<option_name>_settings_fields

The WooCommerce Predictive Search LITE option name settings fields hook.

Description

apply_filters( '<option_name>_settings_fields', (array) $array ); 

Parameters (1)

0. $array — Optional. (array) => array( array( 'name' => __( 'PREMIUM FEATURE', 'woocommerce-predictive-search' ), 'type' => 'heading', 'desc' => '', 'alway_open'=> true, 'id' => 'predictive_search_code', 'is_box' => true, ),)
The array.

Usage

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

Defined (5)

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

/admin/settings/search-function-settings.php  
  1. $this->form_fields = apply_filters( $this->option_name . '_settings_fields', array( 
/admin/settings/search-box-settings.php  
  1. $this->form_fields = apply_filters( $this->option_name . '_settings_fields', array( 
/admin/settings/performance-settings.php  
  1. $this->form_fields = apply_filters( $this->option_name . '_settings_fields', array( 
/admin/settings/global-settings.php  
  1. $this->form_fields = apply_filters( $this->option_name . '_settings_fields', array( 
/admin/settings/all-results-page-settings.php  
  1. $this->form_fields = apply_filters( $this->option_name . '_settings_fields', array(