A WordPress-centric search engine for devs and theme authors



block_core_social_link_get_icon ›

Sincen/a
Deprecatedn/a
block_core_social_link_get_icon ( $service )
Parameters:
  • (string) service The service icon.
    Required: Yes
Returns:
  • (string) SVG Element for service icon.
Defined at:
Codex:

Returns the SVG for social link.



Source

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