block_core_social_link_get_name

函式
block_core_social_link_get_name ( $service )
引數
  • (string) $service The service icon.
    Required:
返回值
  • (string) Brand label.
定義位置
相關方法
block_core_social_link_get_iconblock_core_social_link_servicesrender_block_core_social_linkregister_block_core_social_linkblock_core_gallery_render
引入
-
棄用
-

block_core_social_link_get_name: 此函式用於獲取社交連結的名稱。它返回社交網路的名稱。

返回社交連結的品牌名稱。

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

常見問題

FAQs
檢視更多 >