this->id_options_sanitize_value

Description

apply_filters( $this->id . '_options_sanitize_value', $value, $setting )

Parameters ( 2 ) ( unknown ), ( string )

Usage Examples

To run the filter, copy this sample

$value = apply_filters( $this->id . '_options_sanitize_value', $value, $setting );
  if ( ! empty( $value ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter this->id_options_sanitize_value callback
function my_filter_function( $param1, $param2 )  {
  // do your thing here :-) ... 

  return $value;
}
add_filter( 'this->id_options_sanitize_value' , 'my_filter_function', 10, 2 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'this->id_options_sanitize_value', '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 967
    return apply_filters( $this->id . '_options_sanitize_value', $value, $setting );

filters

Updated on January 14, 2017

Was this article helpful?