Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 487 Bytes
global $wpdb;
global $wp_rewrite;
$WPAgenda_delete_query = "
DELETE wposts.*
FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta
WHERE wposts.ID = wpostmeta.post_id
AND wpostmeta.meta_key = 'tag'
AND wpostmeta.meta_value = 'email'
AND wposts.post_status = 'publish'
AND wposts.post_type = 'agenda'
ORDER BY wposts.post_date DESC
Jump to Line
Something went wrong with that request. Please try again.