PHP Class Twitter\WordPress\Head\WidgetsMetaElements

Since: 1.0.0
Afficher le fichier Open project: twitter/wordpress

Méthodes publiques

Méthode Description
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

Method Details

buildMetaElements() public static méthode

Build HTML meta elements to be included as children of
Since: 1.0.0
public static buildMetaElements ( ) : string
Résultat string HTML meta elements

getWidgetOptions() public static méthode

Get any stored widget theme options
Since: 1.0.0
public static getWidgetOptions ( ) : array | boolean
Résultat array | boolean array of set options or false if no option exists

optOutOfTwitterTailoredAudiences() public static méthode

Applies when Twitter's widgets.js appears on the page to enhance a button or widget
Since: 1.0.0
public static optOutOfTwitterTailoredAudiences ( ) : boolean
Résultat boolean opt out of Twitter tailored audiences

outputMetaElements() public static méthode

Output a HTML string if wiidget theme or other preferences exist
Since: 1.0.0
public static outputMetaElements ( ) : void
Résultat void

widgetOptionsToMetaElementPairs() public static méthode

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