Summery Summery
Returns the brand name for social link.
Syntax Syntax
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']; }