wcvendors_vendor_registration_terms

Description

apply_filters( 'wcvendors_vendor_registration_terms', printf(  __( 'I have read and accepted the terms and conditions', 'wcvendors' ), get_permalink( $this->terms_page ) )

Parameters ( 2 ) ( string ), ( string )

Usage Examples

To run the filter, copy this sample

$str = apply_filters( 'wcvendors_vendor_registration_terms', printf(  __( 'I have read and accepted the terms and conditions', 'wcvendors' ), get_permalink( $this->terms_page ) );
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

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

To remove the filter, copy this sample

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

Defined

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

  • wc-vendors/classes/front/signup/views/html-vendor-signup.php line 35

filters

Updated on January 12, 2017

Was this article helpful?