wcv_product_draft_msg

Description

apply_filters( 'wcv_product_draft_msg',  __( 'Product draft saved.', 'wcvendors-pro' ) ), $view )

Parameters (2) (string), (string)

Usage Examples

To run the filter, copy this sample

$str = apply_filters( 'wcv_product_draft_msg', $msg, $view );
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_product_draft_msg callback
function my_filter_function( $param1, $param2 )( // hand edit values ) {
  // do your thing here :-) ... 

  return $str; 
}
add_filter( 'wcv_product_draft_msg', 'my_filter_function', 10, 2 );

To remove the filter, copy this sample

//remove the filter
remove_filter( 'wcv_product_draft_msg', 'my_filter_function', 10, 2 );

Defined

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

  • wcvendors-pro/public/class-wcvendors-pro-product-controller.php line 118
    $text[ 'notice' ] = sprintf( apply_filters( 'wcv_product_draft_msg',  __( 'Product draft saved.', 'wcvendors-pro' ) ), $view );
  • wcvendors-pro/public/class-wcvendors-pro-product-controller.php line 149
    $text[ 'notice' ] = sprintf( apply_filters( 'wcv_product_draft_msg',  __( 'Product draft saved.', 'wcvendors-pro' ) ), $view );

filters

Updated on January 9, 2017

Was this article helpful?