Advertisement
palsushobhan

wcfm-registration-additional-terms

Jun 5th, 2025
327
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.96 KB | None | 0 0
  1. add_action( 'end_wcfm_membership_registration_form', function() {
  2.     $terms = [
  3.         'Confirm I am a Canadian Seller located in Canada and final product made in Canada',
  4.         'Confirm I have read and understood the Seller Agreement',
  5.         'Confirm that I have read and understood the Crafted Canadian Inc. Terms & Conditions',
  6.         'Confirm I have read and understood the Privacy Policy',
  7.         'Confirm that products posted on CraftedCanadian.ca are Made/Finished in Canada',
  8.     ];
  9.     foreach ( $terms as $key => $term ) {
  10.         echo '<input type="checkbox" id="wcfm-condition-'.$key.'" name="wcfmvm_static_infos[terms-0'.$key.']" class="wcfm-checkbox wcfm-registration-terms" value="Agree" data-required="1" data-required_message="' . esc_html__( 'Required fields are missing.' ) . '">';
  11.         echo '<p class="terms_title wcfm_title"><strong><span class="required">*</span>' . esc_html( $term ) . '</strong></p>';
  12.         echo '<br/>';
  13.     }
  14. });
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement