Description
apply_filters( $this->id . '_select_options', $option[ 'options' ], $option )
Parameters ( 2 ) ( array ), ( array )
Usage Examples
To run the filter, copy this sample
$array_val = apply_filters( $this->id . '_select_options', $option[ 'options' ], $option ); if ( ! empty( $array_val ) ) { // what has been modified... }
To make a callback function, copy this sample
// the filter this->id_select_options callback function my_filter_function( $param1, $param2 ) { // do your thing here :-) ... return $array_val; } add_filter( 'this->id_select_options' , 'my_filter_function', 10, 2 );
To remove the filter, copy this sample
//remove the filter remove_filter( 'this->id_select_options', 'my_filter_function', 10, 2 );
Defined
This filter is defined in the following source file(s)
- wc-vendors/classes/admin/settings/classes/sf-class-settings.php line 351
$option[ 'options' ] = apply_filters( $this->id . '_select_options', $option[ 'options' ], $option );
- wc-vendors/classes/admin/settings/classes/sf-class-settings.php line 835
$options = apply_filters( $this->id . '_select_options', $options, $setting ); ?>