_filter_do_shortcode_context


_filter_do_shortcode_context ( No parameters )

Access:
  • private
Returns:
  • (string) The filtered context value for wp_get_attachment_images when doing shortcodes.
Defined at:

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.

Related Functions

filter_block_content, do_shortcode_tag, get_shortcode_tags_in_content, wp_video_shortcode, rest_filter_response_by_context

Top Google Results

User discussions

wpseek mobile