get_shortcode_atts_regex()
Retrieves the shortcode attributes regex.
Хуков нет.
Возвращает
string. The shortcode attribute regular expression.
Использование
get_shortcode_atts_regex();
Список изменений
| С версии 4.4.0 | Введена. |
Код get_shortcode_atts_regex() get shortcode atts regex WP 7.1
function get_shortcode_atts_regex() {
return '/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|\'([^\']*)\'(?:\s|$)|(\S+)(?:\s|$)/';
}