get_shortcode_atts_regex

Advertisement

Summery Summery

Retrieve the shortcode attributes regex.

Syntax Syntax

get_shortcode_atts_regex()

Return Return

(string) The shortcode attribute regular expression

Source Source

File: wp-includes/shortcodes.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply