From 8da61887bb486b42166d6b4ffbe590e5c399a628 Mon Sep 17 00:00:00 2001 From: Kevin Vess Date: Fri, 21 Jul 2017 19:10:32 -0400 Subject: [PATCH] Fix the example 'source' path for the required plugin to work with child themes --- example.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example.php b/example.php index 4d7208bb..017455bb 100755 --- a/example.php +++ b/example.php @@ -63,7 +63,7 @@ function my_theme_register_required_plugins() { array( 'name' => 'TGM Example Plugin', // The plugin name. 'slug' => 'tgm-example-plugin', // The plugin slug (typically the folder name). - 'source' => get_stylesheet_directory() . '/lib/plugins/tgm-example-plugin.zip', // The plugin source. + 'source' => get_template_directory() . '/lib/plugins/tgm-example-plugin.zip', // The plugin source. 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.