get_shortcode_atts_regex(): string
Retrieves the shortcode attributes regex.
Return
string The shortcode attribute regular expression.
Source
File: wp-includes/shortcodes.php
.
View all references
function get_shortcode_atts_regex() {
return '/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|\'([^\']*)\'(?:\s|$)|(\S+)(?:\s|$)/';
}
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |