apply_filters( 'pre_do_shortcode_tag', bool|string $return , string $tag , array|string $attr , array $m )
Filters whether to call a shortcode callback.
Description
Passing a truthy value to the filter will effectively short-circuit the shortcode generation process, returning that value instead.
Parameters
- $return
-
Short-circuit return value. Either false or the value to replace the shortcode with.
- $tag
-
Shortcode name.
- $attr
-
Shortcode attributes array or empty string.
- $m
-
Regular expression match array.
Source
Changelog
Version | Description |
---|---|
WP-4.7.0 | Introduced. |