shortcode_parse_atts

SummerySummery

Retrieve all attributes from the shortcodes tag.

Syntax

shortcode_parse_atts( string $text )

DescriptionDescription

The attributes list has the attribute name as the key and the value of the attribute as the value in the key/value pair. This allows for easier retrieval of the attributes, since all attributes have to be known.

ParametersParameters

$text

(string) (Required)

ReturnReturn

(array|string) List of attribute values. Returns empty array if trim( $text ) == '""'. Returns empty string if trim( $text ) == ''. All other matches are checked for not empty().

SourceSource

File: wp-includes/shortcodes.php


			

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top