Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $wpdb;
- $date = [something];
- $sql = "SELECT id from {$wpdb->prefix}frm_items WHERE created_at <= '$date'";
- $ids = $wpdb->get_col ( $sql );
- foreach ( $ids as $id ) {
- FrmEntry::destroy($id);
- }
Advertisement
Add Comment
Please, Sign In to add comment