get_shortcode_atts_regex()
Retrieves 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 6.5.2
function get_shortcode_atts_regex() { return '/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|\'([^\']*)\'(?:\s|$)|(\S+)(?:\s|$)/'; }