block_core_social_link_get_services

FILTER wp-includes\blocks\social-link.php (ligne 349) github
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.

Paramètres

Entrée :
$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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...