A WordPress-centric search engine for devs and theme authors



block_core_social_link_get_name ›

Sincen/a
Deprecatedn/a
block_core_social_link_get_name ( $service )
Parameters:
  • (string) $service The service icon.
    Required: Yes
Returns:
  • (string) Brand label.
Defined at:
Codex:

Returns the brand name for social link.



Source

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