PHP 클래스 Twitter\WordPress\Head\WidgetsMetaElements

부터: 1.0.0
파일 보기 프로젝트 열기: twitter/wordpress

공개 메소드들

메소드 설명
buildMetaElements ( ) : string Build HTML meta elements to be included as children of
getWidgetOptions ( ) : array | boolean Get any stored widget theme options
optOutOfTwitterTailoredAudiences ( ) : boolean Opt-out of using visits to this website to influence Twitter tailored content and other suggestions for Twitter users
outputMetaElements ( ) : void Output a HTML string if wiidget theme or other preferences exist
widgetOptionsToMetaElementPairs ( array $options ) : array Convert stored option associative array into a new associative array of meta element name-content pairs for consumption by Twitter's widget JS

메소드 상세

buildMetaElements() 공개 정적인 메소드

Build HTML meta elements to be included as children of
부터: 1.0.0
public static buildMetaElements ( ) : string
리턴 string HTML meta elements

getWidgetOptions() 공개 정적인 메소드

Get any stored widget theme options
부터: 1.0.0
public static getWidgetOptions ( ) : array | boolean
리턴 array | boolean array of set options or false if no option exists

optOutOfTwitterTailoredAudiences() 공개 정적인 메소드

Applies when Twitter's widgets.js appears on the page to enhance a button or widget
부터: 1.0.0
public static optOutOfTwitterTailoredAudiences ( ) : boolean
리턴 boolean opt out of Twitter tailored audiences

outputMetaElements() 공개 정적인 메소드

Output a HTML string if wiidget theme or other preferences exist
부터: 1.0.0
public static outputMetaElements ( ) : void
리턴 void

widgetOptionsToMetaElementPairs() 공개 정적인 메소드

Convert stored option associative array into a new associative array of meta element name-content pairs for consumption by Twitter's widget JS
부터: 1.0.0
public static widgetOptionsToMetaElementPairs ( array $options ) : array
$options array widget options stored by the site
리턴 array associative array