_wp_post_thumbnail_context_filter_add()WP 6.3.0

Adds the '_wp_post_thumbnail_context_filter' callback to 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.

Return

null. Nothing (null).

Usage

_wp_post_thumbnail_context_filter_add();

Changelog

Since 6.3.0 Introduced.

_wp_post_thumbnail_context_filter_add() code WP 6.7.1

function _wp_post_thumbnail_context_filter_add() {
	add_filter( 'wp_get_attachment_image_context', '_wp_post_thumbnail_context_filter' );
}