block_core_social_link_get_name

Advertisement

Summery Summery

Returns the brand name for social link.

Syntax Syntax

block_core_social_link_get_name( string $service )

Parameters Parameters

$service

(Required) The service icon.

Return Return

(string) Brand label.

Source Source

File: wp-includes/blocks/social-link.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'];
}

Advertisement

Advertisement

Leave a Reply