Description
apply_filters( 'pv_product_author', $author, $product_id )
Parameters ( 2 ) ( int ), ( int )
Usage Examples
To run the filter, copy this sample
$value = apply_filters( 'pv_product_author', $author, $product_id ); if ( ! empty( $value ) ) { // what has been modified... }
To make a callback function, copy this sample
// the filter pv_product_author callback function my_filter_function( $param ) { // do your thing here :-) ... return $value; } add_filter( 'pv_product_author' , 'my_filter_function', 10, 2 );
To remove the filter, copy this sample
//remove the filter remove_filter( 'pv_product_author', 'my_filter_function', 10, 2 );
Defined
This filter is defined in the following source file(s)
- wc-vendors/classes/class-vendors.php line 296
$author = apply_filters( 'pv_product_author', $author, $product_id );