Свойство | Тип | Описание | |
---|---|---|---|
$SHORTCODE_DEFAULTS | Accepted shortcode attributes and their default values |
Метод | Описание | |
---|---|---|
getOEmbedCacheKeyCustomParameters ( array $query_parameters ) : string | Generate a unique string representing oEmbed result customizations set by shortcode parameters | |
init ( ) : void | Attach handlers for Twitter embedded video | |
sanitizeShortcodeParameters ( array $attributes = [] ) : array | Convert shortcode parameters into a clean set of Twitter embedded video options parameters | |
shortcodeHandler ( array $attributes, string $content = '' ) : string | Handle shortcode macro | |
shortcodeParamsToOEmbedParams ( string $tweet_id, array $shortcode_options = [] ) : array | Convert shortcode parameters into query parameters supported by the Twitter oEmbed endpoint | |
shortcodeUI ( ) : void | Describe shortcode for Shortcake UI |
public static getOEmbedCacheKeyCustomParameters ( array $query_parameters ) : string | ||
$query_parameters | array | associative array of query parameters sent to the oEmbed endpoint { @type string query parameter name @type string|bool query parameter value } |
Результат | string | cache key component |
public static sanitizeShortcodeParameters ( array $attributes = [] ) : array | ||
$attributes | array | set of shortcode attribute-value pairs matching the WordPress shortcode regex { @type string attribute name @type mixed shortcode value } |
Результат | array | cleaned up options ready for comparison { @type string option name @type string|bool option value } |
public static shortcodeUI ( ) : void | ||
Результат | void |