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

Filters whether to call a shortcode callback.


Description Description

Passing a truthy value to the filter will effectively short-circuit the shortcode generation process, returning that value instead.


Parameters Parameters

$return

(bool|string) Short-circuit return value. Either false or the value to replace the shortcode with.

$tag

(string) Shortcode name.

$attr

(array) Shortcode attributes array,

$m

(array) Regular expression match array.


Top ↑

Source Source

File: wp-includes/shortcodes.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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