pre_do_shortcode_tag

SummerySummery

Filters whether to call a shortcode callback.

Syntax

apply_filters( 'pre_do_shortcode_tag', false|string $return, string $tag, array|string $attr, array $m )

DescriptionDescription

Returning a non-false value from filter will short-circuit the shortcode generation process, returning that value instead.

ParametersParameters

$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.

SourceSource

File: wp-includes/shortcodes.php

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top