apply_filters( 'pre_do_shortcode_tag', false|string $output, 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.


Top ↑

Parameters

$output 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 the original arguments string if it cannot be parsed.
$m array
Regular expression match array.

Top ↑

Source

File: wp-includes/shortcodes.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.