PHP Класс WPSEO_Taxonomy_Social_Fields, wordpress-seo

Наследование: extends WPSEO_Taxonomy_Fields
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( stdClass | WP_Term $term, array $options = null ) Setting the class properties
get ( ) : array Returning the fields for the social media tab
get_by_network ( string $network ) : array Gets the social meta fields by social network for the taxonomy.
show_social ( ) : boolean When this method returns false, the social tab in the meta box will be hidden

Приватные методы

Метод Описание
filter_social_networks ( array $social_networks ) : array Filter the social networks which are disabled in the configuration
get_social_networks ( ) : array Getting array with the social networks
social_network ( string $network, string $label, string $image_size ) : array Returns array with the config fields for the social network

Описание методов

__construct() публичный Метод

Setting the class properties
public __construct ( stdClass | WP_Term $term, array $options = null )
$term stdClass | WP_Term The current taxonomy.
$options array The options.

get() публичный Метод

Returning the fields for the social media tab
public get ( ) : array
Результат array

get_by_network() публичный Метод

Gets the social meta fields by social network for the taxonomy.
public get_by_network ( string $network ) : array
$network string The social network for which to fetch the fields.
Результат array

show_social() публичный Метод

When this method returns false, the social tab in the meta box will be hidden
public show_social ( ) : boolean
Результат boolean