Home » WooCommerce: Add Select Field to “My Account” Register Form

WooCommerce: Add Select Field to “My Account” Register Form

by adminkys

We’ve already seen how to add First & Last Name to the “My Account” register form. Today, I want to expand a bit and show you how to add and save a select box.

WooCommerce: add a select box @ My Account registration form

PHP Snippet: Add Select Field to “My Account” Register Form | WooCommerce

/**
 * @snippet       Add Select Field to "My Account" Register Form | WooCommerce
 * @how-to        Get tutoraspire.com FREE
 * @sourcecode    https://tutoraspire.com/?p=72508
 * @author        Tutor Aspire
 * @testedwith    WooCommerce 3.5.7
 * @donate $9     https://www.tutoraspire.com
 */
 
// -------------------
// 1. Show field @ My Account Registration
 
add_action( 'woocommerce_register_form', 'tutoraspire_extra_register_select_field' );
 
function tutoraspire_extra_register_select_field() {
   
    ?>
 

You may also like