$capabilities * @var string|null $override * @var bool $has_override * @var string $tab * @var array $errors */ if (! defined('ABSPATH')) { exit; } use function Aikon\RoleManager\url_parser; $back_url = url_parser(['tab' => $tab], ['edit_post_type']); $remove_url = url_parser(['action' => 'remove_post_type_override', 'remove_override_post_type' => $post_type]); $invalid_cap = $errors['capability_type'] ?? false; $current_value = $override ?? ''; if (isset($_POST['capability_type'])) { $current_value = sanitize_key($_POST['capability_type']); } ?>

—

$capability): ?>