WordPress at a glance
function is not described

block_core_social_link_get_name() WP 1.0

Returns the brand name for social link.

No Hooks.

Return

String. Brand label.

Usage

block_core_social_link_get_name( $service );
$service(string) (required)
The service icon.

Code of block_core_social_link_get_name() WP 5.5.1

<?php
function block_core_social_link_get_name( $service ) {
	$services = block_core_social_link_services();
	if ( isset( $services[ $service ] ) && isset( $services[ $service ]['name'] ) ) {
		return $services[ $service ]['name'];
	}

	return $services['share']['name'];
}