do_shortcode_tag WordPress Filter Hook

The do_shortcode_tag hook is used to process shortcodes in WordPress. It is called when a shortcode is found in a post and is used to process the shortcode. The do_shortcode_tag hook takes two arguments: the shortcode and the content of the post.

apply_filters( 'do_shortcode_tag', string $output, string $tag, array|string $attr, array $m ) #

Filters the output created by a shortcode callback.


Parameters

$output

(string)Shortcode output.

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