wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



block_core_social_link_get_icon › WordPress Function

Od5.4.0
Przestarzałyn/a
› block_core_social_link_get_icon ( $service )
Parametry:
  • (string) $service The service icon.
    Wymagane: Tak
Powrót:
  • (string) SVG Element for service icon.
Zdefiniowane na:
Codex:

Returns the SVG for social link.



Źródło

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

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