wcv_product_sale_price_date_to

Description

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

Parameters (1) (array)

Sample

array( 
  'post_id'     => $post_id, 
  'id'        => '_sale_price_dates_to', 
  'label'       => __( 'To', 'wcvendors-pro' ), 
  'class'       => 'wcv-datepicker', 
  'placeholder'   => ( '' == $sale_price_dates_to ) ? __( 'To…', 'placeholder', 'wcvendors-pro' ). ' YYYY-MM-DD' : '', 
  'wrapper_start'   => '<div class="all-50 small-100 sale_price_dates_fields">',
  'wrapper_end'     => '</div></div>', 
  'value'       => esc_attr( $sale_price_dates_to ), 
  'desc_tip'      => true, 
  'description'   => __( 'The sale will end at the beginning of the set date.', 'wcvendors-pro' ) . '<a href="#" class="cancel_sale_schedule right">'. __( 'Cancel', 'wcvendors-pro' ) .'</a>', 
  'custom_attributes' => array(
    'data-start-date' => '', 
    'data-close-text' => __( 'Close', 'wcvendors-pro' ), 
    'data-clean-text' => __( 'Clear', 'wcvendors-pro' ), 
    'data-of-text' => __( ' of ', 'wcvendors-pro' ), 
  ),
)

 

Usage Examples

To run the filter, copy this sample

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

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_product_sale_price_date_to callback
function filter_wcv_product_sale_price_date_to( array( $attributes ) ) {
  // do your thing here :-) ... 

  return $array_val; 
}
add_filter( 'wcv_product_sale_price_date_to', 'filter_wcv_product_sale_price_date_to', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcv_product_sale_price_date_to', 'filter_wcv_product_sale_price_date_to', 10, 1 );

Defined

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

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

filters

Updated on January 9, 2017

Was this article helpful?