PHP code example of kitaris / module-theme-skin-switcher

1. Go to this page and download the library: Download kitaris/module-theme-skin-switcher 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/ */

    

kitaris / module-theme-skin-switcher example snippets


\KitarisModule\ThemeSkinSwitcher\SkinSwitcher::get_instance()->boot();

add_action('theme_skin_switcher_register', function ( $registry ) {
    $registry->register([
        'id'   => 'my-pack',
        'path' => get_stylesheet_directory(),
        'url'  => get_stylesheet_directory_uri(),
    ]);
});