I had a similar problem and solved it similar to this:
add_filter('pre_user_display_name','default_display_name');
function default_display_name($display_name) {
if ( isset( $_POST['billing_first_name'] ) ) {
$display_name = sanitize_text_field( $_POST['billing_first_name'] );
}
return $name;
}
I think, the new woocommerce changes the disyplay_name on every checkout to First_Name Last_Name. With the ‘pre_user_display_name’ you can change your own way.
Related Posts:
- Custom query filter not working on woocommerce category page
- Show recent products first but “sold out last” in query
- Select User by Joining Multiple Meta Value Results
- Query Strings and Woocommerce
- Plugin will sort users by usermeta
- Problem when try to add ++1 for user meta
- How to exclude posts for current user
- Combining two meta_values within one row with query
- How to do a sql like query on serialized data of user meta data
- Category_in return empty
- How i make a custom sql query for Woocommerce
- Querying users by meta value and getting a strange answer
- Update vs Insert logic but the last key is always inserted?
- list or get meta_key where meta_value is ‘something’
- WooCommerce Total # orders [closed]
- Custom query_var causes displaying posts archive on front page
- What is the most efficient way of implementing a favorite post system?
- Why does get_the_time(‘F j’) return November 30 for all posts?
- Query by one meta_key and sort by another (possibly NULL value)
- Very slow query
- Search Terms – Querying on either description__like OR name__like in the same Term Query?
- Query & Sort Comments by custom comment meta
- is_archive() doesn’t work on public query var archive pages?
- how to retrieve specific product attribute value in an sql query?
- How to get category link without a database query
- How to count get_users query?
- Possible to get posts from multiple meta keys/values in a single query?
- Difference between fragment caching and wp_cache
- mysql query paging
- How to display all posts with today’s same month and day only?
- Show featured image as background image from postQuery
- Using $wpdb->update but confused on the WHERE in and SET
- You have an error in your SQL syntax – Help with query
- Make one query for adding entries to database
- Order query by post meta value
- add_query_arg() and empty variables inside
- Style Post Differently In Query
- List all posts from past week grouped by sub-category
- Query Custom Post Type posts by Keyword/url slug
- WordPress post type “event” query string fix?
- mysql query two database tables, users and usermeta and sort by custom meta int value
- order one custom post type by modified time of another post type
- WordPress default Search function inconsistent in WooCommerce Product Titles
- is_search called incorreclty
- Add default user field to WooCommerce checkout [closed]
- Function to delete a post, it’s children and it’s grand children (half way there already)
- Query to Get All Users from wp_users With NO matching user_id In wp_usermeta
- Nested loop : wich way/order?
- Dynamically adjust single-posttype.php query, based on current taxonomies
- Multiple Category Query
- Serializing User Role for update_user_meta
- wp_list_pages() refuses to output posts
- Can’t seem to do combined query AND sort?
- Use mysql_query instead of $wpdb query
- sort query results by newest
- Post with certain term and without any term
- Custom Query – Based on user input
- Change the destination of the URLs in post.php
- Page with custom template make get request to a custom route – Pseudo code
- WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]
- get_users with array as meta_value
- How to display SQL query that ran in WC_Order_Query?
- Valid SQL query return empty
- mysql query – how to escape apostrophe?
- $wpdb->prepare affecting the query?
- WordPress SQL search, how to handle SQL Injection?
- Optimize slow SQL query for multiple meta values
- Query for Custom Post Type UI Does Not Loop All the Post
- Updating with $qpdb->query() always returns 0 rows affected
- How to manage a particular “order by” for get_search_query()?
- Query to view scheduled or draft post
- How to return count of custom post type posts with a specific custom field value via $wpdb?
- Help with Related Posts Function
- How to add a Variable to post query
- Sort a list of a CPT ( job) if a meta is empty
- How to filter result set in custom metaboxes?
- Restore WordPress Backup Locally?
- Trouble migrating custom post types from non-wordpress cms
- Create global array to compare inside a query
- How to store ACF from product in user_meta?
- “order” does not affect order of custom query
- Create a new post on a specified publish date via link?
- Exclude Posts from a Widget
- New custom post type entries are not sorted correctly in admin using pre_get_posts
- Query String for the WP_QUERY parameters
- $wpdb query for price in custom field value
- Run an update query in a function
- Add generic page to WP_Query
- Advanced Custom Fields Query with Different Values of the Same Key
- No results for taxonomy archive page
- Multiple terms not working on taxonomy
- Sorting of coupons in the right way
- excludeCat function reverses order of blog posts
- Run search query again without pagination gives no results?
- Filter multiple different main queries on custom pages
- WP_Query orderby meta key/value suddely stopped working
- WP_Query older new links navigation?
- Where can I find the SQL to get the most used information by wordpress database?
- Trying query woocommerce product order by menu order and stock status
- How to figure out correct wp_options to have autoload=’yes’