pre_do_shortcode_tag WordPress Filter Hook
The pre_do_shortcode_tag hook is called before the do_shortcode_tag function is executed. It allows you to modify the shortcode tag before it is processed.
apply_filters( 'pre_do_shortcode_tag', false|string $return , string $tag , array|string $attr , array $m ) #
Filters whether to call a shortcode callback.
Description
Returning a non-false value from filter will short-circuit the shortcode generation process, returning that value instead.
Parameters
- $return
(false|string)Short-circuit return value. Either false or the value to replace the shortcode with.
- $tag
(string)Shortcode name.
- $attr
(array|string)Shortcode attributes array or empty string.
- $m
(array)Regular expression match array.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |