This file contains hidden or 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
| <?php | |
| /** Validate the extra register fields. */ | |
| function wooc_validate_extra_register_fields( $username, $email, $validation_errors ) { | |
| if ( isset( $_POST['billing_first_name'] ) && empty( $_POST['billing_first_name'] ) ) { | |
| $validation_errors->add( 'billing_first_name_error', __( 'What\'s your first name?', 'woocommerce' ) ); | |
| } | |
| if ( isset( $_POST['billing_last_name'] ) && empty( $_POST['billing_last_name'] ) ) { | |
| $validation_errors->add( 'billing_last_name_error', __( 'What\'s your last name?', 'woocommerce' ) ); |
This file contains hidden or 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
| <?php | |
| /** | |
| * Gravity Forms Bootstrap Styles | |
| * | |
| * Applies bootstrap classes to various common field types. | |
| * Requires Bootstrap to be in use by the theme. | |
| * | |
| * Using this function allows use of Gravity Forms default CSS | |
| * in conjuction with Bootstrap (benefit for fields types such as Address). | |
| * |