Codex

Attention Help us to improve the Codex by filling out our documentation survey!

Function Reference/shortcode parse atts

Contents

Description

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.

Usage

<?php shortcode_parse_atts$text ); ?>

Parameters

$text
(string) (required) The shortcode arguments
Default: None

Return Values

(mixed) 
An array with attributes and their values, or a string.


Notes

Used to parse shortcode attributes. Includes attributes that the shortcode doesn't support. Use shortcode_atts to specify specific attributes and only return those.

Change Log

Since: 2.5

Source File

shortcode_parse_atts() is located in wp-includes/shortcodes.php.

Related

Shortcode: do_shortcode(), add_shortcode(), remove_shortcode(), remove_all_shortcodes(), shortcode_atts(), strip_shortcodes(), shortcode_exists(), has_shortcode(), wp_audio_shortcode(), wp_video_shortcode()

See also index of Function Reference and index of Template Tags.