get_shortcode_atts_regex

函数
get_shortcode_atts_regex ( No parameters )
返回值
  • (string) The shortcode attribute regular expression.
定义位置
相关方法
get_shortcode_regexshortcode_attsdo_shortcode_tagget_tag_regexstrip_shortcode_tag
引入
4.4.0
弃用
-

get_shortcode_atts_regex函数是一个WordPress函数,检索用于解析短码属性的正则表达式模式: 这个函数不需要参数,并返回正则表达式模式。

检索短码属性重码。

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 14:32:54

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: