Description
apply_filters( 'wcvendors_pro_order_shipping_label', array( $attributes ) )
Parameters (1) (array)
Sample
array( 'order' => $order, 'store_name' => $store_name, 'store_address1' => $store_address1, 'store_address2' => $store_address2, 'store_city' => $store_city, 'store_state' => $store_state, 'store_country' => $store_country, 'store_postcode' => $store_postcode, 'picking_list' => $products_html, )
Usage Examples
To run the filter, copy this sample
$array_val = apply_filters( 'wcvendors_pro_order_shipping_label', array( $attributes ) ); if ( ! empty( $array_val ) ) { // what has been modified... }
To make a callback function, copy this sample
// the filter wcvendors_pro_order_shipping_label callback function my_filter_function( $param ) { // do your thing here :-) ... return $array_val; } add_filter( 'wcvendors_pro_order_shipping_label', 'my_filter_function', 10, 1 );
To remove the filter, copy this sample
//remove the filter remove_filter( 'wcvendors_pro_order_shipping_label', 'my_filter_function', 10, 1 );
Defined
This filter is defined in the following source file(s)
- wcvendors-pro/public/class-wcvendors-pro-order-controller.php line 662
wc_get_template( 'shipping-label.php', apply_filters( 'wcvendors_pro_order_shipping_label', array(