Removing "Review" metadata
-
As suggested in http://ww.wp.xz.cn/support/topic/adding-reviews-to-events I’ve added the WP Customer reviews to events and locations with the proposed workaround.
However, now that I’m looking to remove them, I’ll need a similar workaround to disable the plugin from events and locations.
Can this be achieved by altering the “Disable Plugin for all Existing Posts” code [below] and replacing ‘post’ with ‘event’ and then pressing the respective button in the admin interface?
elseif ($this->p->Submit == 'Disable Plugin for all Existing Posts') { global $wpdb; $wpdb->query( "DELETE $wpdb->postmeta FROM $wpdb->postmeta LEFT JOIN $wpdb->posts ON $wpdb->posts.ID = $wpdb->postmeta.post_id WHERE $wpdb->posts.post_type = 'post' AND $wpdb->postmeta.meta_key = 'wpcr_enable' " ); }Any thoughts on whether this is likely to work / screw up the site?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Removing "Review" metadata’ is closed to new replies.