A WordPress-centric search engine for devs and theme authors



pre_do_shortcode_tag ›

Since4.7.0
Deprecatedn/a
apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m )
Parameters: (4)
  • (bool|string) $return 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 empty string.
    Required: Yes
  • (array) $m Regular expression match array.
    Required: Yes
Defined at:
Codex:

Filters whether to call a shortcode callback.

Passing a truthy value to the filter will effectively short-circuit the shortcode generation process, returning that value instead.





Source

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