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



pre_do_shortcode_tag › WordPress过滤钩子

Since4.7.0
已弃用n/a
apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m )
参数: (4)
  • (false|string) $output Short-circuit return value. Either false or the value to replace the shortcode with.
    Required: Yes
  • (string) $tag Shortcode name.
    Required: Yes
  • (array|string) $attr Shortcode attributes array or the original arguments string if it cannot be parsed.
    Required: Yes
  • (array) $m Regular expression match array.
    Required: Yes
定义在:
文档:

Filters whether to call a shortcode callback.

Returning a non-false value from filter will short-circuit the shortcode generation process, returning that value instead.





源码

$return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );