Created
May 31, 2018 04:04
-
-
Save anhducbkhn/0b814a4b3ad64a0fc3286ed0a7b652a8 to your computer and use it in GitHub Desktop.
Clean Plugins WP
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
Remove Data Go Pricing (https://www.go-pricing.com/) plugin | |
global $wpdb; | |
$rows = $wpdb->get_results( "SELECT * FROM wp_posts where `post_type` = 'go_pricing_tables'"); | |
foreach ( $rows as $row ) | |
{ | |
wp_delete_post( $row->ID, true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment