cnp / wp-add-favicon
Customize favicon definitions per host and front-end/back-end. Includes filter for favicon uri modification.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/cnp/wp-add-favicon
Requires
- php: >=5.3.3
This package is auto-updated.
Last update: 2025-09-15 03:47:46 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 )
.