block_core_social_link_get_icon() – Returns the SVG for social link.
You appear to be a bot. Output may be restricted
Description
Returns the SVG for social link.
Usage
$string = block_core_social_link_get_icon( $service );
Parameters
- $service
- ( string ) required – The service icon.
Returns
string SVG Element for service icon.
Source
File name: wordpress/wp-includes/blocks/social-link.php
Lines:
1 to 8 of 8
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']; }