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