<form_key>_settings_fields

The WooCommerce Dynamic Gallery LITE form key settings fields hook.

Description

apply_filters( '<form_key>_settings_fields', (unknown) $this_form_fields ); 

Parameters (1)

0. $this_form_fields (unknown)
The this form fields.

Usage

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

Defined (1)

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

/admin/settings/gallery-style-settings.php  
  1. $this->form_fields = apply_filters( $this->form_key . '_settings_fields', $this->form_fields );