wcvendors_agree_to_terms_error

Description

apply_filters( 'wcvendors_agree_to_terms_error', __( 'You must accept the terms and conditions to become a vendor.', 'wcvendors' ) )

Parameters ( 1 ) ( string )

Usage Examples

To run the filter, copy this sample

$str = apply_filters( 'wcvendors_agree_to_terms_error', __( 'You must accept the terms and conditions to become a vendor.', 'wcvendors' ) );
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

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

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcvendors_agree_to_terms_error', '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 171
    $error->add( 'no_terms', apply_filters( 'wcvendors_agree_to_terms_error', __( 'You must accept the terms and conditions to become a vendor.', 'wcvendors' ) ) );
  • wc-vendors/classes/front/signup/class-vendor-signup.php line 208
    wc_add_notice( apply_filters( 'wcvendors_agree_to_terms_error', __( 'You must accept the terms and conditions to become a vendor.', 'wcvendors' ), 'error' ) );
  • wc-vendors/classes/front/signup/class-vendor-signup.php line 220
    $validation_errors->add(  'agree_to_terms_error', apply_filters( 'wcvendors_agree_to_terms_error', __( 'You must accept the terms and conditions to become a vendor.', 'wcvendors' ) ) );

filters

Updated on January 12, 2017

Was this article helpful?