wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_shortcode_atts_regex › WordPress Function

Since4.4.0
已弃用n/a
get_shortcode_atts_regex ( 没有参数 )
返回:
  • (string) The shortcode attribute regular expression.
定义在:
文档:

Retrieves the shortcode attributes regex.



源码

function get_shortcode_atts_regex() {
	return '/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|\'([^\']*)\'(?:\s|$)|(\S+)(?:\s|$)/';
}