Skip to content

Commit fd45527

Browse files
committed
Adding plugin-update-checker.
1 parent 4097adf commit fd45527

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

built-core.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,24 @@
4242
*/
4343
require_once BUILT_CORE_PATH . 'inc/security.php'; // Security
4444
require_once BUILT_CORE_PATH . 'inc/cleanup.php'; // Cleanup
45+
46+
47+
/**
48+
* Plugin Updage Checker
49+
*
50+
* @link https://github.com/YahnisElsts/plugin-update-checker?tab=readme-ov-file#getting-started
51+
*/
52+
require 'plugin-update-checker/plugin-update-checker.php';
53+
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
54+
55+
$myUpdateChecker = PucFactory::buildUpdateChecker(
56+
'https://github.com/builtnorth/built-core-plugin',
57+
__FILE__,
58+
'built-core'
59+
);
60+
61+
//Set the branch that contains the stable release.
62+
$myUpdateChecker->setBranch('main');
63+
64+
//Optional: If you're using a private repository, specify the access token like this:
65+
//$myUpdateChecker->setAuthentication('your-token-here');

0 commit comments

Comments
 (0)