W3cubDocs

/WordPress

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 );
}

Changelog

Version Description
3.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_ajax_oembed_cache