Свойство | Тип | Описание | |
---|---|---|---|
$SHORTCODE_DEFAULTS | Accepted shortcode attributes and their default values |
Метод | Описание | |
---|---|---|
featureName ( ) : string | Reference the feature by name | |
init ( ) : void | Attach handlers for Twitter Grid | |
linkHandler ( array $matches, array $attr, string $url, array $rawattr ) : string | Handle a URL matched by a embed handler | |
oEmbedCacheKey ( array $query_parameters ) : string | Construct a cache key for the oEmbed response. Account for query parameters needing to bust cache | |
shortcodeHandler ( array $attributes, string $content = '' ) : string | Handle shortcode macro | |
shortcodeUI ( ) : void | Describe shortcode for Shortcake UI |
public static featureName ( ) : string | ||
Результат | string | translated feature name |
public static linkHandler ( array $matches, array $attr, string $url, array $rawattr ) : string | ||
$matches | array | The regex matches from the provided regex when calling {@link wp_embed_register_handler()}. |
$attr | array | Embed attributes. Not used. |
$url | string | The original URL that was matched by the regex. Not used. |
$rawattr | array | The original unmodified attributes. Not used. |
Результат | string | HTML markup for the Tweet grid or an empty string if requirements not met |
public static oEmbedCacheKey ( array $query_parameters ) : string | ||
$query_parameters | array | oEmbed API query parameters |
Результат | string | cache key |
public static shortcodeHandler ( array $attributes, string $content = '' ) : string | ||
$attributes | array | set of shortcode attribute-value pairs or positional content matching the WordPress shortcode regex { @type string|int attribute name or positional int @type mixed shortcode value } |
$content | string | content inside a shortcode macro. no effect on this shortcode |
Результат | string | HTML markup. empty string if parameter requirement not met or no collection info found |
public static shortcodeUI ( ) : void | ||
Результат | void |