Last active
December 18, 2015 16:49
-
-
Save bigandy/5814387 to your computer and use it in GitHub Desktop.
Rename CPT name after have changed CPT name
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
SELECT * FROM DBPREFIX_posts where post_type = 'OLD_CPT' | |
UPDATE DBPREFIX_posts SET post_type = 'NEW_CPT' where post_type = 'OLD_CPT' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment