Skip to content

Instantly share code, notes, and snippets.

@fervous
Created June 15, 2018 20:09
Show Gist options
  • Save fervous/443225201171f0d1a64fa27a52263ddf to your computer and use it in GitHub Desktop.
Save fervous/443225201171f0d1a64fa27a52263ddf to your computer and use it in GitHub Desktop.
require paypal email upon signup application wc vendors pro
//require paypal to be filled out during application
function wcv_vendor_paypal_address_required( $args ) {
$args[ 'custom_attributes' ] = array(
'data-rules' => 'required',
'data-error' => __( 'Your PayPal email is REQUIRED. Please enter your PayPal email address.', 'wcvendors-pro' )
);
return $args;
}
add_filter( 'wcv_vendor_paypal_address', 'wcv_vendor_paypal_address_required' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment