Méthode | Description | |
---|---|---|
__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 |
Méthode | Description | |
---|---|---|
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 |
public __construct ( stdClass | WP_Term $term, array $options = null ) | ||
$term | stdClass | WP_Term | The current taxonomy. |
$options | array | The options. |
public get_by_network ( string $network ) : array | ||
$network | string | The social network for which to fetch the fields. |
Résultat | array |
public show_social ( ) : boolean | ||
Résultat | boolean |