wcvendors_pending_role

Description

apply_filters( 'wcvendors_pending_role', ( $manual ? 'pending_vendor' : 'vendor' ) )

Parameters ( 1 ) ( string )

Usage Examples

To run the filter, copy this sample

$str = apply_filters( 'wcvendors_pending_role', ( $manual ? 'pending_vendor' : 'vendor' ) );
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

  return $str;
}
add_filter( 'wcvendors_pending_role' , 'my_filter_function', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcvendors_pending_role', 'my_filter_function', 10, 1 );

Defined

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

  • wc-vendors/classes/front/signup/class-vendor-signup.php line 127
    $role   = apply_filters( 'wcvendors_pending_role', ( $manual ? 'pending_vendor' : 'vendor' ) );
  • wc-vendors/classes/front/signup/class-vendor-signup.php line 151
    $role   = apply_filters( 'wcvendors_pending_role', ( $manual ? 'pending_vendor' : 'vendor' ) );

filters

Updated on January 14, 2017

Was this article helpful?