Checks the post_date_gmt or modified_gmt and prepare any post or modified date for single post output.
Duplicate of WP_REST_Revisions_Controller::prepare_date_response.
$date_gmtstringrequired
$datestring|nulloptional
Default:null
if ( ! empty( $resolved_theme_uris ) ) {
$response->add_links(
array(
'https://api.w.org/theme-file' => $resolved_theme_uris,
)
);
}
return $response;
}
| Version | Description |
|---|---|
| 6.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_global_styles_revisions_controller/prepare_date_response