PHP code example of mercator / wn-themeupdater-plugin

1. Go to this page and download the library: Download mercator/wn-themeupdater-plugin 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/ */

    

mercator / wn-themeupdater-plugin example snippets



$updater->replace("assets");
$updater->replace("theme.yaml");
 
php artisan theme:copy master child


$updater->backup("layouts/default.htm");
$updater->replace("layouts");
$updater->restore("layouts/default.htm");
$updater->replace("assets");
$updater->replace("theme.yaml");
 

$res = yourFunction($updater->child_path()); // call yourFunction and pass child path