shortcode_parse_atts()
Retrieve 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.
1 time — 0.000195 sec (fast) | 50000 times — 0.07 sec (speed of light)
No Hooks.
Return
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().
Usage
shortcode_parse_atts( $text );
- $text(string) (required)
- -
Changelog
Since 2.5.0 | Introduced. |