pre_do_shortcode_tag WordPress Filter Hook

The pre_do_shortcode_tag hook is called before the do_shortcode_tag function is executed. It allows you to modify the shortcode tag before it is processed.

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

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


Top ↑

Source

File: wp-includes/shortcodes.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.