PHP 클래스 Twitter\WordPress\Site\Username

부터: 1.0.0
파일 보기 프로젝트 열기: twitter/wordpress 1 사용 예제들

공개 메소드들

메소드 설명
getSiteAttribution ( integer | string | boolean | null $post_id = null ) : string Attribute a webpage to a Twitter @username for the site or site section
getViaAttribution ( integer | string | null $post_id = null ) : string Attribute a Tweet created through a link on your site to a Twitter username

메소드 상세

getSiteAttribution() 공개 정적인 메소드

Similar to a site byline or masthead with Twitter attribution Affects Twitter Analytics
부터: 1.0.0
public static getSiteAttribution ( integer | string | boolean | null $post_id = null ) : string
$post_id integer | string | boolean | null WP_Post->ID, false response of get_the_ID, proprietary post ID, or null if outside of a post context or no post ID found
리턴 string Twitter username or empty string

getViaAttribution() 공개 정적인 메소드

Attribute a Tweet created through a link on your site to a Twitter username
부터: 1.0.0
public static getViaAttribution ( integer | string | null $post_id = null ) : string
$post_id integer | string | null WP_Post->ID, proprietary post ID, or null if outside of a post context or no post ID found
리턴 string Twitter username or empty string