Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atwellpub/8777369 to your computer and use it in GitHub Desktop.
Save atwellpub/8777369 to your computer and use it in GitHub Desktop.
InboundNow - Prepare Extensions for Licensing and Updating
<?php
function inboundnow_mailchimp_extension_setup()
{
/*PREPARE THIS EXTENSION FOR LICENSING */
if ( class_exists( 'INBOUNDNOW_EXTEND' ) )
{
$license = new INBOUNDNOW_EXTEND( INBOUNDNOW_MAILCHIMP_FILE , INBOUNDNOW_MAILCHIMP_LABEL , INBOUNDNOW_MAILCHIMP_SLUG , INBOUNDNOW_MAILCHIMP_CURRENT_VERSION , INBOUNDNOW_MAILCHIMP_REMOTE_ITEM_NAME ) ;
}
/*
* Parameters & Constants Explained:
*
* INBOUNDNOW_MAILCHIMP_FILE:
* This constant is defined by the __FILE__ command, which is points absolute path to the plugin's main file. eg: /home/www/wp-content/plugins/my-plugin/my-plugin.php.
*
* INBOUNDNOW_MAILCHIMP_LABEL:
* The plugin extension's formal name.
*
* INBOUNDNOW_MAILCHIMP_SLUG:
* This is the directory name of the plugin
*
* INBOUNDNOW_MAILCHIMP_CURRENT_VERSION :
* This is the current version of the extension
*
* INBOUNDNOW_MAILCHIMP_REMOTE_ITEM_NAME
* This will be defined by InboundNow.com team and will represent a special slug (usually the store item's permalink name) that will help connect the extension to InboundNow.com when making api calls.
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment