Skip to content

Instantly share code, notes, and snippets.

@jamigibbs
Last active September 4, 2016 17:11
Show Gist options
  • Save jamigibbs/dd8e02903c1020cdbb6a1d49f1537059 to your computer and use it in GitHub Desktop.
Save jamigibbs/dd8e02903c1020cdbb6a1d49f1537059 to your computer and use it in GitHub Desktop.
<?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.
)
@jamigibbs
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment