1. Home
  2. WC Vendors Pro
  3. Developer Documentation
  4. Pro Filter Hooks
  5. wcv_partial_path_pro_product_shipping_flat_rate

wcv_partial_path_pro_product_shipping_flat_rate

Description

apply_filters( 'wcv_partial_path_pro_product_shipping_flat_rate' , $this->base_dir . 'admin/partials/product/wcvendors-pro-product-meta-shipping-flat-rate.php' );

Parameters (1) (string)

Usage Examples

To run the filter, copy this sample

$str = apply_filters( 'wcv_partial_path_pro_product_shipping_flat_rate', $param );
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

  return $str; 
}
add_filter( 'wcv_partial_path_pro_product_shipping_flat_rate', 'filter_wcv_partial_path_pro_product_shipping_flat_rate', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcv_partial_path_pro_product_shipping_flat_rate', 'filter_wcv_partial_path_pro_product_shipping_flat_rate', 10, 1 );

Defined

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

  • wcvendors-pro/admin/partials/product/wcvendors-pro-vendor-shipping-panel.php line 20
    <?php include( apply_filters( 'wcv_partial_path_pro_product_shipping_flat_rate' , $this->base_dir . 'admin/partials/product/wcvendors-pro-product-meta-shipping-flat-rate.php' ) ); ?>

     

filters

Updated on January 9, 2017

Was this article helpful?