Used By
Used By | Description |
---|---|
wp-includes/shortcodes.php: shortcode_parse_atts() | Retrieve all attributes from the shortcodes tag. |
Retrieve the shortcode attributes regex.
(string) The shortcode attribute regular expression
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|$)/'; }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_shortcode_atts_regex