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

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