Created
December 11, 2017 20:46
-
-
Save fervous/406222ff85cf5f9e7ba71818ad3bcf3c to your computer and use it in GitHub Desktop.
wc vendors pro website url required field
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
/* WEBSITE REQUIRED */ | |
function wcv_vendor_company_url_required( $args ) { | |
$args[ 'custom_attributes' ] = array( | |
'data-rules' => 'required', | |
'data-error' => __( 'This field is required.', 'wcvendors-pro' ) | |
); | |
return $args; | |
} | |
add_filter( 'wcv_vendor_company_url', 'wcv_vendor_company_url_required' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment