wpseek.com
WordPress开发者和主题制作者的搜索引擎



_filter_do_shortcode_context › WordPress Function

Since6.3.0
已弃用n/a
_filter_do_shortcode_context ( 没有参数 )
访问:
  • private
返回:
  • (string) The filtered context value for wp_get_attachment_images when doing shortcodes.
定义在:
文档:

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.


源码

function _filter_do_shortcode_context() {
	return 'do_shortcode';
}