Skip to content

Instantly share code, notes, and snippets.

@josephfinlayson
Last active December 20, 2015 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephfinlayson/6209492 to your computer and use it in GitHub Desktop.
Save josephfinlayson/6209492 to your computer and use it in GitHub Desktop.
vanity url remover
DELETE *
FROM `wp_postmeta`
WHERE `meta_key` = 'vanity_url'
OR `meta_key` = '_dest_page_id'
DELETE *
FROM `wp_posts`
WHERE `post_type` = 'vanity_url'
DELETE FROM `wp_fusion`.`wp_posts` WHERE `wp_posts`.`ID` = 489 LIMIT 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment