cnp / wp-add-favicon
Customize favicon definitions per host and front-end/back-end. Includes filter for favicon uri modification.
0.1
2016-02-02 16:27 UTC
Requires
- php: >=5.3.3
This package is auto-updated.
Last update: 2024-11-15 02:02:59 UTC
README
This function returns a favicon link element.
Arguments
array(): arguments are passed into the function in the following manner:
$args = array(
'host.dev' => array(
'public' => '[FAVICON URL]',
'admin' => '[FAVICON URL]'
),
'another.host.dev' => array(
'public' => '[FAVICON URL]',
'admin' => '[FAVICON URL]'
),
'onemore.host.dev' => array(
'public' => '[FAVICON URL]',
'admin' => '[FAVICON URL]'
)
);
Defaults
'*' = array(
'public' => '/img/icons/favicon.ico',
'admin' => '/img/icons/admin-favicon.ico'
);
Returns
A favicon link element.
<link rel="shortcut icon" href="[FAVICON-URL]" />
Filters
You can adjust the HREF
output of this function by adding this filter: add_filter( 'cnp_add_favicon_filter', 'custom_filter_title', 20, 1 )
.