Created
June 15, 2018 20:09
-
-
Save fervous/443225201171f0d1a64fa27a52263ddf to your computer and use it in GitHub Desktop.
require paypal email upon signup application wc vendors pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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