embed_cache_oembed_types

embed_cache_oembed_types

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('embed_cache_oembed_types') is found 1 times:

  • /wp-includes/class-wp-embed.php line 416
    		 * @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;
    		}
    
    		// Trigger a caching.