File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 4242 */
4343require_once BUILT_CORE_PATH . 'inc/security.php ' ; // Security
4444require_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');
You can’t perform that action at this time.
0 commit comments