PHP 클래스 Twitter\WordPress\Shortcodes\TweetGrid

부터: 1.3.0
상속: implements Twitter\WordPress\Shortcodes\ShortcodeInterface, use trait Twitter\WordPress\Shortcodes\OEmbedTrait
파일 보기 프로젝트 열기: twitter/wordpress

공개 프로퍼티들

프로퍼티 타입 설명
$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

메소드 상세

featureName() 공개 정적인 메소드

Reference the feature by name
부터: 1.3.0
public static featureName ( ) : string
리턴 string translated feature name

init() 공개 정적인 메소드

Attach handlers for Twitter Grid
부터: 1.3.0
public static init ( ) : void
리턴 void

linkHandler() 공개 정적인 메소드

Handle a URL matched by a embed handler
부터: 1.3.0
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

oEmbedCacheKey() 공개 정적인 메소드

Construct a cache key for the oEmbed response. Account for query parameters needing to bust cache
부터: 1.3.0
public static oEmbedCacheKey ( array $query_parameters ) : string
$query_parameters array oEmbed API query parameters
리턴 string cache key

shortcodeHandler() 공개 정적인 메소드

Handle shortcode macro
부터: 1.3.0
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

shortcodeUI() 공개 정적인 메소드

Describe shortcode for Shortcake UI
부터: 1.3.0
public static shortcodeUI ( ) : void
리턴 void

프로퍼티 상세

$SHORTCODE_DEFAULTS 공개적으로 정적으로 프로퍼티

Accepted shortcode attributes and their default values
부터: 1.3.0
public static $SHORTCODE_DEFAULTS