PHP code example of kaiseki / wp-favicon
1. Go to this page and download the library: Download kaiseki/wp-favicon library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kaiseki / wp-favicon example snippets
use Kaiseki\WordPress\Favicon\Favicon;
return [
'favicon' => [
// Directory holding the icon assets, relative to the active theme directory
// (the theme directory URI is prepended automatically).
'path' => 'assets/favicon',
// Optional separate directory for the admin; falls back to `path`.
'admin_path' => '',
// Whether to also render the favicon in the admin when no admin_path is set.
'show_in_admin' => true,
],
'hook' => [
'provider' => [
Favicon::class,
],
],
];