_wp_post_thumbnail_context_filter_add()
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.
Returns
null. Nothing (null).
Usage
_wp_post_thumbnail_context_filter_add();
Changelog
| Since 6.3.0 | Introduced. |
_wp_post_thumbnail_context_filter_add() wp post thumbnail context filter add code WP 6.8.3
function _wp_post_thumbnail_context_filter_add() {
add_filter( 'wp_get_attachment_image_context', '_wp_post_thumbnail_context_filter' );
}