PHP 클래스 Jetpack_Twitter_Cards, jetpack

Hooks onto the Open Graph protocol and extends it by adding only the tags we need for twitter cards.
또한 보기: https://dev.twitter.com/cards/overview
파일 보기 프로젝트 열기: automattic/jetpack 1 사용 예제들

공개 메소드들

메소드 설명
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 )

메소드 상세

init() 정적인 공개 메소드

static public init ( )

prioritize_creator_over_default_site() 정적인 공개 메소드

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

sanitize_twitter_user() 정적인 공개 메소드

static public sanitize_twitter_user ( $str )

settings_field() 정적인 공개 메소드

static public settings_field ( )

settings_init() 정적인 공개 메소드

static public settings_init ( )

settings_validate() 정적인 공개 메소드

static public settings_validate ( )

sharing_global_options() 정적인 공개 메소드

static public sharing_global_options ( )

site_tag() 정적인 공개 메소드

static public site_tag ( )

twitter_cards_define_type_based_on_image_count() 정적인 공개 메소드

static public twitter_cards_define_type_based_on_image_count ( $og_tags, $extract )

twitter_cards_output() 정적인 공개 메소드

static public twitter_cards_output ( $og_tag )

twitter_cards_tags() 정적인 공개 메소드

static public twitter_cards_tags ( $og_tags )