wppaste
WordPress

apply_filters( 'block_core_social_link_get_services', array $services_data )

Since
6.9.0
Filter the list of available social service.

Description

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.

Compatibility

WordPress
since 6.9.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in 3 of the 5 tracked releases, added in 6.9.0.

Parameters

$services_dataarray
The list of services. Each item is an array containing a 'name' and 'icon' key.

Where this hook fires · 1

  • wp-includes/blocks/social-link.php:349block_core_social_link_services()

Source code

	 *	 * @since 6.9.0	 *	 * @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.	 */	$services_data = apply_filters( 'block_core_social_link_get_services', $services_data ); 	if ( ! empty( $service )		&& ! empty( $field )		&& isset( $services_data[ $service ] )		&& ( 'icon' === $field || 'name' === $field )	) {

Changelog

Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.

  1. 6.9.7
  2. 7.0.4
  3. 7.1.0

Signature, return type and hooks compared across 3 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.