PHP Class Jetpack_Twitter_Cards, jetpack

Hooks onto the Open Graph protocol and extends it by adding only the tags we need for twitter cards.
See also: https://dev.twitter.com/cards/overview
Show file Open project: automattic/jetpack Class Usage Examples

Public Methods

Method Description
init ( )
prioritize_creator_over_default_site ( $site_tag, $og_tags = [] )
sanitize_twitter_user ( $str )
settings_field ( )
settings_init ( )
settings_validate ( )
sharing_global_options ( )
site_tag ( )
twitter_cards_define_type_based_on_image_count ( $og_tags, $extract )
twitter_cards_output ( $og_tag )
twitter_cards_tags ( $og_tags )

Method Details

init() static public method

static public init ( )

prioritize_creator_over_default_site() static public method

static public prioritize_creator_over_default_site ( $site_tag, $og_tags = [] )

sanitize_twitter_user() static public method

static public sanitize_twitter_user ( $str )

settings_field() static public method

static public settings_field ( )

settings_init() static public method

static public settings_init ( )

settings_validate() static public method

static public settings_validate ( )

sharing_global_options() static public method

static public sharing_global_options ( )

site_tag() static public method

static public site_tag ( )

twitter_cards_define_type_based_on_image_count() static public method

static public twitter_cards_define_type_based_on_image_count ( $og_tags, $extract )

twitter_cards_output() static public method

static public twitter_cards_output ( $og_tag )

twitter_cards_tags() static public method

static public twitter_cards_tags ( $og_tags )