From fd45527020a3d9ee86266665820401a4e094acc0 Mon Sep 17 00:00:00 2001 From: Dan Northern Date: Sat, 6 Jul 2024 11:26:46 -0400 Subject: [PATCH] Adding plugin-update-checker. --- built-core.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/built-core.php b/built-core.php index 0651bec..e413d77 100755 --- a/built-core.php +++ b/built-core.php @@ -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'); \ No newline at end of file