wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_do_shortcode_tag › WordPress Filter Hooks

Since6.5.0
Deprecatedn/a
apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m )
Parameters: (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) $attr Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
    Required: Yes
  • (array) $m Regular expression match array.
    Required: Yes
Defined at:
Codex:

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.





Source

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