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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |