Same can be done through functions.php
in your (child) theme:
add_filter("woocommerce_checkout_fields", "order_fields");
function order_fields($fields) {
$order = array(
"billing_first_name",
"billing_last_name",
"billing_company",
"billing_address_1",
"billing_address_2",
"billing_postcode",
"billing_country",
"billing_email",
"billing_phone"
);
foreach($order as $field)
{
$ordered_fields[$field] = $fields["billing"][$field];
}
$fields["billing"] = $ordered_fields;
return $fields;
}
Related Posts:
- Changing WooCommerce Display Price Based on User Role & Category [closed]
- How can I customize the wp_list_categories
- Can’t change a label in woocommerce with the normal filter
- Add a Span Around a Product Title in WooCommerce [closed]
- Customize WooCommerce Error Message
- WooCommerce Variable Product Price – Where is “From” text generated from?
- remove_action in plugin file
- How to apply filter at search of woocommerce products?
- Removing an action, or dequeueing style – Both not working
- WooCommerce Custom Product Validation [closed]
- Replace Paid Shipping Method With Free Shipping Method WooCommerce [duplicate]
- apply_filters(‘the_content’, $content) vs do_shortcode($content)
- Sanitize and data validation with apply_filters() function
- How many filter/action hooks are healthy?
- Filter specific shortcode output?
- Insert new element to array with add_filter
- Valid characters for actions, hooks and filters
- How to hook into unregistering a widget instance?
- How can I extend the Gutenberg table block transform to allow colspans/rowspans on pasted table elements?
- How do I use the ‘http_request_host_is_external’ filter
- get_option() filtering and getting out of recursion
- Get excerpt from $post->post_content
- How can I add information underneath the user’s name on the users.php page?
- AJAX filter posts on click based on category
- How can I filter Microsoft Word gunk from pasted content?
- How to disable all WordPress emails modularly and programatically?
- How do I know if author field was changed on post save?
- Allow Profile HTML for select users
- WordPress 3.5+ upload tool filter
- Search with filters and title
- Some questions regarding filter
- Use content custom filter for all shortcodes
- Filter all html output
- Very stubborn wp_register_script / add_action vs remove
- Remove action from a plugin class, forced to use global instance
- Which hook is fired when inserting media into a post
- remove filter which calls a public static function
- How to specify which category of the post to use in case of multiple categories
- Return array of images after content
- failed to filter hook `get_terms_defaults`
- Filter list by a unique meta value dilemma
- How to use shortcode attribute in separate function
- return values from hooks do_action and apply_filters, which is better
- get_title without filter(the_title)
- How can filters be run when they are never applied?
- How to filter a wordpress core function?
- get_bookmarks filter not supplying query argument (wp 3.1)
- Filter Posts by current Month
- Is there a filter called ‘network_admin_init’?
- Manipulating show_on_front, page_on_front, page_for_posts and template hierarchy
- Edit default comments page in WP Admin
- Post Content, Special Characters and Filters
- Correct method of redirecting user login
- Creating a plugin to sanitize comment and the url field before display only
- How to filter for user registration, be able to throw error message
- Admin filter for product SKU?
- WordPress user account activation
- Filtering the post list in the admin area
- Filter pre_get_posts does not modify Mine/All/Pending
- How to check if a protected hook is hooked?
- Can i use multiple ‘the_content’ filters?
- Translate custom order status through a filter?
- Using preg_replace() with the_content filter
- term_link filter gives less atributes
- Add mime types with plugin
- Filter media upload attachment meta
- Filter wp_redirect() to stop redirect under certain condition
- WP 4.5 hide core customizer sections
- Echo string in admin panel footer beside version no
- How to change default text for specific post type
- Add PHP code after title in single post pages?
- Custom nav walker: How to acces the $args parameter?
- How to stop the deduction in “wp_term_taxonomy” count, when the post is deleted?
- What’s the best way to echo out a filter variable?
- Same URL for portfolio and for a page creates 404 error. Is there any filter that i can use for a child page?
- How to pass a variable between filter/action functions?
- how to unescape wordpress output
- 500 Internal server error wp_handle_upload_prefilter
- Database & Post Search
- login_url filter creates permanent wp-admin -> wp-login redirection loop
- Using Filters to modify contect – DB query results alwats appear fist
- How can I change the button text of a custom widget?
- the_content filter not working when Jetpack activated. Any idea?
- Edit plugin filter
- Restrict access to custom post type and filter from every query
- Why none of xmlrpc filters work
- How do i get all author posts on custom post type list
- How to use the filter ‘widget_text’ to a particular text widget with id
- Custom xmlrpc request does not pass parameters?
- Hook into ‘when user logs in’ [persistent login]
- Retrive images from the_content()
- How to turn this customized core function into a filter/action in functions.php?
- Categorize posts on a page o the basis of category of other post on the same page
- manage_users_custom_columns filter not firing callback functions
- Conditionally including JS based on whether ACF field is set [closed]
- How to use apply_filters(‘get_calendar’) to change get_calendar() output?
- How to add custom HTML attribute to reusable block div in WordPress admin
- Hooking/Filtering theme name to add theme directory
- How to use filter in this situation, can not modify the structure using filter
- Change social icon in twenty twenty three theme