Created
June 6, 2014 05:20
-
-
Save markbain/9b1552ee267d33d43568 to your computer and use it in GitHub Desktop.
Change name of WordPress custom post type in database
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
UPDATE `wp_posts` SET `post_type` = 'NEW_CPT_NAME' WHERE `post_type` = 'OLD_CPT_NAME'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment