-
Notifications
You must be signed in to change notification settings - Fork 2
/
update-this-plugin-name.php
46 lines (40 loc) · 1.46 KB
/
update-this-plugin-name.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* Plugin Name: Add PluginName
* Plugin URI: https://github.com/maldersIO/Plugin-Starter
* Description: This is the maldersIO plugin starter complete with Admin Dash Update Fucntionality
* Version: 1.0.0
* Author: maldersIO
* Author URI: https://malders.io/
* License: GNU v3.0
*/
if ( ! defined( 'ABSPATH' ) ) {
die();
}
/* PluginName Start */
//______________________________________________________________________________
//______________________________________________________________________________
// All About Updates
// Begin Version Control | Auto Update Checker
require 'plugin-update-checker/plugin-update-checker.php';
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
// ***IMPORTANT*** Update this path to New Github Repository Master Branch Path
'https://github.com/FreshyMichael/Plugin-Starter',
__FILE__,
// ***IMPORTANT*** Update this to New Repository Master Branch Path
'Plugin-Starter'
);
//Enable Releases
$myUpdateChecker->getVcsApi()->enableReleaseAssets();
//Optional: If you're using a private repository, specify the access token like this:
//
//
//Future Update Note: Comment in these sections and add token and branch information once private git established
//
//
//$myUpdateChecker->setAuthentication('your-token-here');
//Optional: Set the branch that contains the stable release.
//$myUpdateChecker->setBranch('stable-branch-name');
//______________________________________________________________________________
/* PluginName End */
?>