Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
if (is_admin()) { // note the use of is_admin() to double check that this is happening in the admin
$config = array(
'slug' => plugin_basename(__FILE__), // this is the slug of your plugin
'proper_folder_name' => 'plugin-name', // this is the name of the folder your plugin lives in
'api_url' => '', // the github API url of your github repo
'raw_url' => '', // the github raw url of your github repo
'github_url' => '', // the github url of your github repo
'zip_url' => '', // the zip url of the github repo
'sslverify' => true // wether WP should check the validity of the SSL cert when getting an update, see and for details
'requires' => '3.0', // which version of WordPress does your plugin require?
'tested' => '3.3', // which version of WordPress is your plugin tested up to?
'readme' => 'README.MD' // which file to use as the readme for the version number
new WPGitHubUpdater($config);

This comment has been minimized.

Copy link

@olipayne olipayne commented Aug 25, 2014

I believe line 9 should have a comma after 'true' -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.