WPDev.one
Core Function
View Source on Trac ↗

get_shortcode_regex()

get_shortcode_regex( mixed $tagnames = null )

Retrieves the shortcode regular expression for searching.

Parameters 0 required

Name / Type Description
$tagnames
array

Optional. List of shortcodes to find. Defaults to all registered shortcodes.

Return Value

(string)
The shortcode search regular expression

Function Information

Since Version
2.5.0
Source File
wp-includes/shortcodes.php
Advertisement