apply_filters( 'jsps_get_network_html_icon', $icon, $slug, $network_info, $is_front ) → {string}
Gets a HTML of the icon used in the admin and front.
It takes into account custom and core networks including SVG file linking.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
$icon |
string | The HTML Code generated. | |
$slug |
string | The Network slug. | |
$network_info |
array | An array of the usual Network information. | |
$is_front |
boolean | false | Is it an icon for front or admin? |
- Since:
- 2.0.0 First version
- Source:
Returns:
The HTML Code generated. Return default admin icon
<i>
tag, or <svg>
icon if custom network with file, return <i>
with custom class if it's a custom network with class.
- Type
- string