block_core_social_link_get_icon

函数


block_core_social_link_get_icon ( $service )
参数
  • (string)
    $service
    The service icon.
    Required:
返回值
  • (string) SVG Element for service icon.
定义位置
  • wp-includes/blocks/social-link.php
    , line 59
引入
弃用

Returns the SVG for social link.

function block_core_social_link_get_icon( $service ) {
	$services = block_core_social_link_services();
	if ( isset( $services[ $service ] ) && isset( $services[ $service ]['icon'] ) ) {
		return $services[ $service ]['icon'];
	}

	return $services['share']['icon'];
}