PHP code example of boxuk / wp-iconography
1. Go to this page and download the library: Download boxuk/wp-iconography 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/ */
boxuk / wp-iconography example snippets
add_filter(
'boxuk_iconography_files',
function ( $config_files ) {
$config_files['example'] = __DIR__ . '/config/example.config.json';
return $config_files;
}
);
add_filter(
'boxuk_iconography_files',
function ( $config_files ) {
$plugin_dir = WP_CONTENT_DIR . '/mu-plugins/wp-iconography'; // make sure this is valid for your project!
// Remove any unnecessary
$config_files['material-symbols-outlined'] = $plugin_dir . '/config/material-symbols-outlined.config.json';
$config_files['material-symbols-outlined-filled'] = $plugin_dir . '/config/material-symbols-outlined-filled.config.json';
$config_files['material-symbols-sharp'] = $plugin_dir . '/config/material-symbols-sharp.config.json';
$config_files['material-symbols-sharp-filled'] = $plugin_dir . '/config/material-symbols-sharp-filled.config.json';
$config_files['material-symbols-rounded'] = $plugin_dir . '/config/material-symbols-rounded.config.json';
$config_files['material-symbols-rounded-filled'] = $plugin_dir . '/config/material-symbols-rounded-filled.config.json';
return $config_files;
}
);