block_core_social_link_get_name()WP 1.0

Returns the brand name for social link.

Хуков нет.

Возвращает

Строку. Brand label.

Использование

block_core_social_link_get_name( $service );
$service(строка) (обязательный)
The service icon.

Код block_core_social_link_get_name() WP 6.0.2

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'];
}