Created
July 23, 2019 20:38
Star
You must be signed in to star a gist
Move Checkout for WooCommerce phone 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
<?php | |
// Do NOT include the opening php tag. | |
// Place in your theme's functions.php file | |
add_filter( 'woocommerce_default_address_fields', 'move_phone_fields', 100001 ); | |
function move_phone_fields( $fields ) { | |
if ( isset( $fields['phone'] ) ) { | |
$fields['phone']['priority'] = 14; | |
} | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment