The purpose of the code in this repo is to integrate the WP App Store into your theme or plugin and enable you to sell addons for that theme or plugin. This particular code was built specifically for integration with Modern Tribe's Events Calendar plugin. However, it can easily be adapted to fit into your theme or plugin as described below.
- Open
wp-app-store-integration.php - Replace the value of
$parent_skuwith the SKU of the product you are integrating this into - Replace the value of
$affiliate_idwith your affiliate ID - Replace the value of
$parent_slugwith the slug of the top level menu item you want to add this to - Replace the value of
$addons_menu_titlewith the title of the page - Replace the value of
$this->slugwith your own prefix instead oftribe- - Replace instances of
Tribe_andtribe_with your own prefix - Open
classes/wp-app-store.php - Replace instances of
Tribe_andtribe_with your own prefix
- Copy all of the files in this repo to your theme or plugin directory
- Follow the instructions above to adapt the settings to your own theme or plugin if you haven't already
- Add
include "/path/to/wp-app-store-integration.php"to your theme'sfunctions.phpfile or for a plugin, your primary plugin file
- Initial release