WPDev.one
Core Function
View Source on Trac ↗

shortcode_parse_atts()

shortcode_parse_atts( mixed $text )

Retrieves all attributes from the shortcodes tag.

Parameters 1 required

Name / Type Description
$text
string

Shortcode arguments list.

Required

Return Value

(array)
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.

Function Information

Since Version
2.5.0
Source File
wp-includes/shortcodes.php
Advertisement