_wp_post_thumbnail_context_filter_remove()WP 6.3.0

Removes the '_wp_post_thumbnail_context_filter' callback from the wp_get_attachment_image_context hook. Internal use only.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Returns

null. Nothing (null).

Usage

_wp_post_thumbnail_context_filter_remove();

Changelog

Since 6.3.0 Introduced.

_wp_post_thumbnail_context_filter_remove() code WP 7.0

function _wp_post_thumbnail_context_filter_remove() {
	remove_filter( 'wp_get_attachment_image_context', '_wp_post_thumbnail_context_filter' );
}