Description
apply_filters( 'wcv_shipping_tab', array( $attributes ) )
Parameters (1) (array)
Sample
array( 'title' => __( 'Shipping', 'wcvendors-pro' ), 'priority' => 60, 'callback' => array( $this, 'shipping_panel' ) )
Usage Examples
To run the filter, copy this sample
$array_val = apply_filters( 'wcv_shipping_tab', array( $attributes ) ); if ( ! empty( $array_val ) ) { // what has been modified... }
To make a callback function, copy this sample
// the filter wcv_shipping_tab callback function filter_wcv_shipping_tab( $param ) { // do your thing here :-) ... return $array_val; } add_filter( 'wcv_shipping_tab', 'filter_wcv_shipping_tab', 10, 1 );
To remove the filter, copy this sample
//remove the filter remove_filter( 'wcv_shipping_tab', 'filter_wcv_shipping_tab', 10, 1 );
Defined
This filter is defined in the following source file(s)
- wcvendors-pro/admin/class-wcvendors-pro-shipping-controller.php line 83
$tabs[ 'wcv_shipping_tab' ] = apply_filters( 'wcv_shipping_tab', array(