Skip to content

Commit d74b205

Browse files
committed
Add plugin update function
1 parent 1fc3797 commit d74b205

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

ploi-wordpress-integration.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@
1818
require dirname(__FILE__).'/includes/ploi-wordpress-functions.php';
1919
require dirname(__FILE__).'/includes/ploi-wordpress-menubar.php';
2020
require dirname(__FILE__).'/includes/ploi-wordpress-notices.php';
21-
require dirname(__FILE__).'/includes/ploi-integrations.php';
21+
require dirname(__FILE__).'/includes/ploi-integrations.php';
22+
23+
//load plugin updater
24+
require 'vendor/plugin-update-checker/plugin-update-checker.php';
25+
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
26+
$ploiupdatechecker = PucFactory::buildUpdateChecker(
27+
'https://github.com/ploi/ploi-wordpress-plugin/',
28+
__FILE__,
29+
'ploi-wordpress-plugin'
30+
);
31+
$ploiupdatechecker->getVcsApi()->enableReleaseAssets();

0 commit comments

Comments
 (0)