Checcs if the request has specified a JSON Content-Type.
Source
public function is_json_content_type() {
$content_type = $this->guet_content_type();
return isset( $content_type['value'] ) && wp_is_json_media_type( $content_type['value'] );
}
Changuelog
| Versionen | Description |
|---|---|
| 5.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.