Skip to content

The core functionality for managing all Frosty Media WordPress plugin licenses.

License

Notifications You must be signed in to change notification settings

Frosty-Media/frosty-media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frosty Media (License Manager)

The core functionality that manages all Frosty.Media licenses, settings, auto-updates and notifications. It's a required plugin for any purchases made on Frosty Media.

Usage

Download zip and install, or as a standalone include. (Download and install is required for all Frosty Media purchased plugins.

Use the function below inside your plugin you need licensed and managed.

/**
 * Register our plugin for license management.
 *
 * @return 	array plugins
 */
function frosty_media_register_licensed_plugin( $plugins ) {
	
	$plugins[] = array(
		'id' 			=> 'prefix_plugin_title', // Option title
		'title' 		=> 'Plugin Title', // Must match EDD post_title!
		'version'		=> '1.0.0',
		'file'			=> __FILE__,
		'basename'		=> plugin_basename( __FILE__ ),
		'download_id'	=> '2345', // EDD download ID!
		'author'		=> 'Austin Passy' // Author of this plugin
	);	
	return $plugins;
}
add_filter( 'frosty_media_add_plugin_license', 'frosty_media_register_licensed_plugin' );

Changelog

Current Version:1.5.0

@todo:

  • Cleanup Notifications class.
  • Add a button to get all notifications (current and past).
  • Force get new notifications.
Version 1.5.0 2017-11-28
  • Implement common abstract (base) class for the Licenses & Notifications classes.
  • Add an interface for the classes which use hooks.
  • Fix lowercase class implementation of Common which could cause issues in core.php.
  • Code cleanup: dashboard.php, list-table.php.
  • Only enqueue admin scripts and styles on their respected pages.
Version 1.4.0 2017-11-27
  • Updated WP_GitHub_Updater which has not seen an update in over three years. It's now out of sync.
  • Implemented new icons for WordPress > 4.9's upgrade screen.
  • Added new PNG and JPG icons.
  • Added this License Manager plugin to the update html notice. Meaning an update bubble will show if it has an update.
Version 1.3.5 2017-11-25
  • Remove overide code in Core for GitHub Link version 0.4.6.
Version 1.3.4 2017-11-25
  • Fix possible JS error when installing from GitHub master or version zip.
Version 1.3.3 2017-11-23
  • Update GitHub Link package to 0.4.6 to fix large dashicons in plugins page.
Version 1.3.2 2017-11-22
  • Fix possible undefined array key notice in WordPress 4.9
  • Update GitHub Link package to 0.4.5.
Version 1.3.0 2017-11-15
  • Fixes incompatibility with PHP 5.5. Note: Version 2 will require PHP 7.
  • Skips version 1.2 which had some misspelled directory changes.
  • Fixes activation of License Keys on License settings page.
  • Fix errors in update checks to wp.org of premium plugins.
  • All files formatted to new coding standards.
  • Moves classes out of includes directory and into src.
  • Update EDD SL Plugin Updater package to 1.6.8.
  • Update GitHub Link package to 0.4.4.
Version 1.1.0 10/10/15
  • Code rewrite and cleanup.
  • Introduced namespaced code.
  • Fixed messages not showing up.
  • Fixed license key activation errors.
Version 1.0.9 01/27/15
  • Fix: issue #2 - unexpected T_FUNCTION (PHP versions < 5.3).
Version 1.0.8 01/11/15
  • Double check notices aren't NULL.
  • Fix: licenses sending empty license_key.
Version 1.0.7 01/05/15
  • Fix: license activation update overwriting the settings array.
Version 1.0.6 01/05/15
  • Proper deactivation and reactivation of plugin after GitHub folder rename.
  • Fix: GitHub issue #1.
Version 1.0.5 12/12/14
  • Rename folder if installed via GitHub zipball.
Version 1.0.4 12/12/14
  • Fix: Possible empty array in notifications on first activation.
Version 1.0.3 12/12/14
  • Added FM_Common static class.
  • Cleaned up code.
Version 1.0.2 12/08/14
  • Update FM_API_URL to https.
  • Updated EDD_SL_Plugin_Updater.php to version 1.5.
Version 1.0.1 11/14/14
  • Added: edd-sl-api/ enpoint to license API URL.
Version 1.0.0 11/11/14
  • Initial Release.