apply_filters( ‘pre_do_shortcode_tag’, false|string $output, string $tag, array $attr, array $m )

In this article

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

$outputfalse|string
Short-circuit return value. Either false or the value to replace the shortcode with.
$tagstring
Shortcode name.
$attrarray
Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
$marray
Regular expression match array.

Source

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

Changelog

VersionDescription
6.5.0The $attr parameter is always an array.
4.7.0Introduced.

User Contributed Notes

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