PHP Класс Twitter\WordPress\Head\WidgetsMetaElements

С версии: 1.0.0
Показать файл Открыть проект

Открытые методы

Метод Описание
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