ID && $current_user->has_cap('manage_options') || ($current_user->ID && $current_user->has_cap('wppm_admin')))) { exit; } $status_id = isset($_POST) && isset($_POST['status_id']) ? absint(sanitize_text_field(wp_unslash($_POST['status_id']))) : 0; if (!$status_id) {exit;} $status = $wpdb->get_row($wpdb->prepare("SELECT * FROM {$wpdb->prefix}wppm_task_statuses WHERE id = %d", $status_id)); ob_start(); ?>

$body, 'footer' => $footer ); echo wp_json_encode($output);