PHP code example of aristath / github-theme-updater

1. Go to this page and download the library: Download aristath/github-theme-updater 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/ */

    

aristath / github-theme-updater example snippets


	add_action( 'after_setup_theme', function() {
		get_template_part( 'inc/classes/Updater' );
	});
	

	new Updater(
		[
			'name' => 'Gridd',                     // Theme Name.
			'repo' => 'wplemon/gridd',             // Theme repository.
			'slug' => 'gridd',                     // Theme Slug.
			'url'  => 'https://wplemon.com/gridd', // Theme URL.
			'ver'  => 1.2                          // Theme Version.
		]
	);