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

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