函数原型
get_shortcode_atts_regex(): string
函数描述
Retrieves 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. |

