Свойство | Тип | Описание | |
---|---|---|---|
$attributes | key => value pairs for the shortcode's attributes: [$shortcode_name key="value" ... /] | ||
$body | The HTML of the parsed inner "child" shortcodes". Null for selfclosing shortcodes. | ||
$content | Null for selfclosing shortcodes. Hhe inner content of otherwise: [$shortcode_name]$content[/$shortcode_name] | ||
$defaults | key => value pair for attribute defaults | ||
$fields | Associative array of inner "child" shortcodes equivalent to the $content: [$shortcode_name][child 1/][child 2/][/$shortcode_name] | ||
$shortcode_name | the name of the shortcode: [$shortcode_name /] |
Метод | Описание | |
---|---|---|
__construct ( array $attributes, null | string $content = null ) | ||
__toString ( ) | Generates the shortcode | |
esc_attr ( $value ) | ||
get_attribute ( string $key ) : mixed | Returns the value of the requested attribute. | |
parse_content ( string $content ) | Processes the shortcode's inner content for "child" shortcodes | |
unesc_attr ( $value ) |
public get_attribute ( string $key ) : mixed | ||
$key | string | The attribute to retrieve |
Результат | mixed |
public parse_content ( string $content ) | ||
$content | string | The shortcode's inner content: [shortcode]$content[/shortcode] |
public $attributes |
public $body |
public $content |
public $fields |