wp_ajax_oembed_cache() WordPress Function

The wp_ajax_oembed_cache() function allows you to cache oEmbed results in WordPress. This can be useful when you want to avoid making unnecessary API calls or when you want to cache the results of API calls for performance reasons.

wp_ajax_oembed_cache() #

Ajax handler for oEmbed caching.


Source

File: wp-admin/includes/ajax-actions.php

function wp_ajax_oembed_cache() {
	$GLOBALS['wp_embed']->cache_oembed( $_GET['post'] );
	wp_die( 0 );
}


Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More