Filter the list of available social service. This can be used to change icons or add custom icons (additionally to variations in the editor). Icons should be directly renderable - therefore SVGs work best.
$services_data
Sortie :
@param array $services_data The list of services. Each item is an array containing a 'name' and 'icon' key. @return array The list of social services.
// Modifier la valeur avec le filtre 'block_core_social_link_get_services'
add_filter('block_core_social_link_get_services', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($services_data) {
// Modifier la valeur
return $services_data;
}
Chargement des actualités...