You appear to be a bot. Output may be restricted
Description
Add singular-images
endpoint to the REST API.
Returns an array of post types that have genesis-singular-images support with singular images enabled in the Singular Content panel in the Customizer.
Example: curl https://example.com/wp-json/genesis/v1/singular-images
Example response:
[
- 'post', // Featured Images are enabled on posts.
- 'page' // Featured Images are enabled on pages.
]
Usage
get_singular_images();
Parameters
Returns
void
Source
File name: genesis/lib/functions/rest.php
Lines:
1 to 12 of 12
function get_singular_images() { \register_rest_route( 'genesis/v1', '/singular-images', [ 'methods' => 'GET', 'callback' => '\genesis_post_types_with_singular_images_enabled', 'permission_callback' => '__return_true', ] ); }