Created
April 23, 2020 15:16
-
-
Save yanknudtskov/cba48dd568a76e3aa54968fc04e09a59 to your computer and use it in GitHub Desktop.
Set Title case for all products in WooCommerce using SQL
This file contains hidden or 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
| UPDATE wp_posts SET post_title = LCASE( post_title ) WHERE post_type = 'product'; | |
| UPDATE wp_posts SET post_title = CONCAT( UCASE( LEFT(post_title, 1) ), SUBSTRING(post_title, 2) ) WHERE post_type = 'product'; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment