cnp/wp-add-favicon
Composer 安装命令:
composer require cnp/wp-add-favicon
包简介
Customize favicon definitions per host and front-end/back-end. Includes filter for favicon uri modification.
README 文档
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 ).
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-02