Skip to content

Commit

Permalink
Adding plugin-update-checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannorthern committed Jul 6, 2024
1 parent 4097adf commit fd45527
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions built-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,24 @@
*/
require_once BUILT_CORE_PATH . 'inc/security.php'; // Security
require_once BUILT_CORE_PATH . 'inc/cleanup.php'; // Cleanup


/**
* Plugin Updage Checker
*
* @link https://github.com/YahnisElsts/plugin-update-checker?tab=readme-ov-file#getting-started
*/
require 'plugin-update-checker/plugin-update-checker.php';
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;

$myUpdateChecker = PucFactory::buildUpdateChecker(
'https://github.com/builtnorth/built-core-plugin',
__FILE__,
'built-core'
);

//Set the branch that contains the stable release.
$myUpdateChecker->setBranch('main');

//Optional: If you're using a private repository, specify the access token like this:
//$myUpdateChecker->setAuthentication('your-token-here');

0 comments on commit fd45527

Please sign in to comment.