Last active
September 4, 2016 17:11
-
-
Save jamigibbs/dd8e02903c1020cdbb6a1d49f1537059 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This is an example of how to include a plugin from the WordPress Plugin Repository. | |
array( | |
'name' => esc_html__( 'WooCommerce', 'text-domain' ), | |
'slug' => 'woocommerce', | |
'required' => false, | |
), | |
// This is an example of how to include a plugin bundled with a theme. | |
array( | |
'name' => esc_html__( 'Example Plugin', 'text-domain' ), // The plugin name. | |
'slug' => 'example-plugin', // The plugin slug (typically the folder name). | |
'source' => get_template_directory_uri() . '/lib/plugins/example-plugin.zip', // The plugin source. | |
'required' => false, // If false, the plugin is only 'recommended' instead of required. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: http://tgmpluginactivation.com/configuration/