allowsUnfilteredHtml() ? $value : wp_kses_post($value); } public function code(string $value): string { return $this->allowsUnfilteredHtml() ? $value : wp_kses_post($value); } public function url(string $value): string { return esc_url_raw(trim($value)); } public function allowsUnfilteredHtml(): bool { return current_user_can('unfiltered_html'); } public function canReadPost(int $id): bool { return current_user_can('read_post', $id); } }