Summery Summery
Passes any unlinked URLs that are on their own line to WP_Embed::shortcode() for potential embedding.
Syntax Syntax
Parameters Parameters
- $content
-
(Required) The content to be searched.
Return Return
(string) Potentially modified $content.
Source Source
File: wp-includes/class-wp-embed.php
/** * Filters the array of post types to cache oEmbed results for. * * @since 2.9.0 * * @param string[] $post_types Array of post type names to cache oEmbed results for. Defaults to post types with `show_ui` set to true. */ $cache_oembed_types = apply_filters( 'embed_cache_oembed_types', $post_types ); if ( empty( $post->ID ) || ! in_array( $post->post_type, $cache_oembed_types, true ) ) { return; }