embed_cache_oembed_types

Advertisement

Summery Summery

Filters the array of post types to cache oEmbed results for.

Syntax Syntax

apply_filters( 'embed_cache_oembed_types', string[] $post_types )

Parameters Parameters

$post_types

(string[]) Array of post type names to cache oEmbed results for. Defaults to post types with show_ui set to true.

Source Source

File: wp-includes/class-wp-embed.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Advertisement

Leave a Reply

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