get_shortcode_atts_regex() WordPress Function
The get_shortcode_atts_regex() function is used to retrieve the regular expression for the shortcode attributes.
get_shortcode_atts_regex() #
Retrieve the shortcode attributes regex.
Return
(string) The shortcode attribute regular expression
Source
File: wp-includes/shortcodes.php
function get_shortcode_atts_regex() { return '/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|\'([^\']*)\'(?:\s|$)|(\S+)(?:\s|$)/'; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |