Software Licensing - Updating Child Themes
When using automatic updating with EDD's Software Licensing you must have an /updater/ folder in your theme folder, and it must contain a theme-updater-class.php
file.
For child themes that theme-updater-class.php
file needs a minor adjustment. On line 24 you'll find 'theme_slug' => get_template(),
get_template()
must be changed to get_stylesheet()
for Child Themes, so that it looks like this:
Inside your child theme functions.php file you will also have to make a change:
function prefix_theme_updater() { require( get_template_directory() . '/updater/theme-updater.php' ); } add_action( 'after_setup_theme', 'prefix_theme_updater' );
Change get_template_directory
to get_stylesheet_directory