Summery Summery

Passes any unlinked URLs that are on their own line to WP_Embed::shortcode() for potential embedding.

Syntax Syntax

WP_Embed::autoembed( string $content )

Parameters Parameters


(string) (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 ) ) {


See also See also


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?