프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$SHORTCODE_DEFAULTS | Accepted shortcode attributes and their default values |
메소드 | 설명 | |
---|---|---|
getScreenName ( ) : string | Get the Twitter screen name of the author of the current post | |
init ( ) : void | Register shortcode macro and handler | |
linkHandler ( array $matches, array $attr, string $url, array $rawattr ) : string | Handle a URL matched by a embed handler | |
sanitizeShortcodeParameters ( array $attributes = [] ) : array | Clean up provided shortcode values | |
shortcodeHandler ( array $attributes, string $content = '' ) : string | Handle shortcode macro | |
shortcodeUI ( ) : void | Describe shortcode for Shortcake UI |
public static getScreenName ( ) : string | ||
리턴 | string | Twitter screen name or empty if no screen name stored |
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 follow button or an empty string if requirements not met |
public static sanitizeShortcodeParameters ( array $attributes = [] ) : array | ||
$attributes | array | provided shortcode attributes { @type string shortcode attribute name @type mixed shortcode attribute value } |
리턴 | array | simplified shortcode values with defaults removed { @type string shortcode attribute name @type bool|string shortcode attribute value } |
public static shortcodeUI ( ) : void | ||
리턴 | void |