Created
September 25, 2014 19:45
-
-
Save yellowberri-snippets/2e5a627975a37ff04888 to your computer and use it in GitHub Desktop.
WP: SQL: Rename Custom Post Types
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 SQL Row>` | |
SET `post_type` = '<new post type name>' | |
WHERE `post_type` = '<old post type name>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment