shortcode_parse_atts
shortcode_parse_atts ( $text )
Parameters:- (string) text Shortcode arguments list.
Returns:- (array) Array of attribute values keyed by attribute name. Returns empty array if there are no attributes or if the original arguments string cannot be parsed.
Defined at:Change Log: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Retrieves all attributes from the shortcodes tag.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.