WP_Embed::delete_oembed_caches() – Delete all oEmbed caches. Unused by core as of 4.0.0.
You appear to be a bot. Output may be restricted
Description
Deletes all oEmbed caches. Unused by core as of 4.0.0.
Usage
WP_Embed::delete_oembed_caches( $post_id );
Parameters
- $post_id
- ( int ) required – Post ID to delete the caches for.
Returns
void
Source
File name: wordpress/wp-includes/class-wp-embed.php
Lines:
1 to 12 of 12
public function delete_oembed_caches( $post_id ) { $post_metas = get_post_custom_keys( $post_id ); if ( empty( $post_metas ) ) { return; } foreach ( $post_metas as $post_meta_key ) { if ( '_oembed_' === substr( $post_meta_key, 0, 8 ) ) { delete_post_meta( $post_id, $post_meta_key ); } } }