wp_ajax_oembed_cache()
Handles oEmbed caching via AJAX.
No Hooks.
Return
null
. Nothing (null).
Usage
wp_ajax_oembed_cache();
Notes
- Global. WP_Embed. $wp_embed WordPress Embed object.
Changelog
Since 3.1.0 | Introduced. |
wp_ajax_oembed_cache() wp ajax oembed cache code WP 6.6.2
function wp_ajax_oembed_cache() { $GLOBALS['wp_embed']->cache_oembed( $_GET['post'] ); wp_die( 0 ); }