wcv_default_product_type

Description

apply_filters( 'wcv_default_product_type', 'simple' )

Parameters (1) (string)

Usage Examples

To run the filter, copy this sample

$value = apply_filters( 'wcv_default_product_type', $param );
  if ( ! empty( $value ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_default_product_type callback
function filter_wcv_default_product_type( $param ) {
  // do your thing here :-) ... 

  return $value; 
}
add_filter( 'wcv_default_product_type', 'filter_wcv_default_product_type', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcv_default_product_type', 'filter_wcv_default_product_type', 10, 1 );

Defined

This filter is defined in the following source file(s)

  • wcvendors-pro/public/forms/class-wcvendors-pro-product-form.php line 649
    $product_type = apply_filters( 'wcv_default_product_type', 'simple' );
  • wcvendors-pro/public/forms/class-wcvendors-pro-product-form.php line 652
    $product_type = apply_filters( 'wcv_default_product_type', 'simple' );

filters

Updated on January 9, 2017

Was this article helpful?