pv_is_vendor

Description

apply_filters( 'pv_is_vendor', $is_vendor, $user_id )

Parameters ( 2 ) ( boolean ), ( int )

Usage Examples

To run the filter, copy this sample

$value = apply_filters( 'pv_is_vendor', $is_vendor, $user_id );
  if ( ! empty( $value ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

  return $value;
}
add_filter( 'pv_is_vendor' , 'my_filter_function', 10, 2 );

To remove the filter, copy this sample

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

Defined

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

  • wc-vendors/classes/class-vendors.php line 327
    return apply_filters( 'pv_is_vendor', $is_vendor, $user_id );

filters

Updated on January 11, 2017

Was this article helpful?