wcv_product_sku

Description

apply_filters( 'wcv_product_sku', array( $attributes ) )

Parameters (1) ( array )

Sample

array( 
  'post_id'   => $post_id, 
  'id'      => '_sku', 
  'label'     => '<abbr title="'. __( 'Stock Keeping Unit', 'wcvendors-pro' ) .'">' . __( 'SKU', 'wcvendors-pro' ) . '</abbr>', 
  'desc_tip'    => 'true', 
  'description'   => __( 'SKU refers to a Stock-keeping unit, a unique identifier for each distinct product and service that can be purchased.', 'wcvendors-pro' ) 
)

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcv_product_sku', array( $attributes ) );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter_wcv_product_sku callback
function my_filter_function( $param )  {
  // do your thing here :-) ... 

  return $array_val;
}
add_filter( 'wcv_product_sku' , 'my_filter_function', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcv_product_sku', 'my_filter_function', 10, 1 );

Defined

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

  • wcvendors-pro/public/forms/class-wcvendors-pro-product-form.php line 1013
    WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_product_sku', array(
  • wcvendors-pro/public/forms/class-wcvendors-pro-product-form.php line 1023
    WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_product_sku', array(

filters

Updated on January 10, 2017

Was this article helpful?