Uses
Uses | Description |
---|---|
wp-includes/functions.php: wp_parse_list() | Cleans up an array, comma- or space-separated list of scalar values. |
Parses the “_embed” parameter into the list of resources to embed.
(string|array) (Required) Raw "_embed" parameter value.
(true|string[]) Either true to embed all embeds, or a list of relations to embed.
File: wp-includes/rest-api.php
function rest_parse_embed_param( $embed ) { if ( ! $embed || 'true' === $embed || '1' === $embed ) { return true; } $rels = wp_parse_list( $embed ); if ( ! $rels ) { return true; } return $rels; }
Version | Description |
---|---|
5.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/rest_parse_embed_param