_filter_do_shortcode_context
- %1$s is private and should not be used in themes or plugins directly.
_filter_do_shortcode_context ( No parameters )
Access:Returns:- (string) The filtered context value for wp_get_attachment_images when doing shortcodes.
Defined at: - Introduced in WordPress: 6.3.0
- Deprecated in WordPress: —
Description
Filter the `wp_get_attachment_image_context` hook during shortcode rendering.When wp_get_attachment_image() is called during shortcode rendering, we need to make clear
that the context is a shortcode and not part of the theme's template rendering logic.