public function _delete_data($post_id) { if (get_post_type($post_id) == 'st_rental') { global $wpdb; $table = $wpdb->prefix . 'st_rental'; $rs = TravelHelper::deleteDuplicateData($post_id, $table); if (!$rs) { return false; } return true; } }