Skip to content

Instantly share code, notes, and snippets.

@fervous
Created December 11, 2017 20:46
Show Gist options
  • Save fervous/406222ff85cf5f9e7ba71818ad3bcf3c to your computer and use it in GitHub Desktop.
Save fervous/406222ff85cf5f9e7ba71818ad3bcf3c to your computer and use it in GitHub Desktop.
wc vendors pro website url required field
/* 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