geczy_sanitize_$option[type]

Description

apply_filters( 'geczy_sanitize_' . $option[ 'type' ], $input[ $id ], $option )

Parameters ( 1 ) ( string ), ( array )

Usage Examples

To run the filter, copy this sample

$str = apply_filters( 'geczy_sanitize_' . $option[ 'type' ], $input[ $id ], $option );
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter geczy_sanitize_$option[type] callback
function my_filter_function( $param1, $param2 )  {
  // do your thing here :-) ... 

  return $str;
}
add_filter( 'geczy_sanitize_$option[type]' , 'my_filter_function', 10, 2 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'geczy_sanitize_$option[type]', '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 362
    $clean[ $id ] = apply_filters( 'geczy_sanitize_' . $option[ 'type' ], $input[ $id ], $option );
  • wc-vendors/classes/admin/settings/classes/sf-class-settings.php line 421
    $output[ $option[ 'id' ] ] = apply_filters( 'geczy_sanitize_' . $option[ 'type' ], $option[ 'std' ], $option );

filters

Updated on January 14, 2017

Was this article helpful?