PHP 클래스 WPSEO_Taxonomy_Social_Fields, wordpress-seo

상속: extends WPSEO_Taxonomy_Fields
파일 보기 프로젝트 열기: yoast/wordpress-seo 1 사용 예제들

공개 메소드들

메소드 설명
__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