WPSEO_Taxonomy_Social_Fields::filter_social_networks PHP Method

filter_social_networks() private method

Filter the social networks which are disabled in the configuration
private filter_social_networks ( array $social_networks ) : array
$social_networks array Array with the social networks that have to be filtered.
return array
    private function filter_social_networks(array $social_networks)
    {
        foreach ($social_networks as $social_network => $settings) {
            if (empty($this->options[$social_network])) {
                unset($social_networks[$social_network]);
            }
        }
        return $social_networks;
    }