Skip to content

Instantly share code, notes, and snippets.

@richtabor
Forked from jamigibbs/tgmpa-plugin-example.php
Last active September 19, 2016 13:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save richtabor/5bf6b80afb96e0956640038673ecc4a7 to your computer and use it in GitHub Desktop.
<?php
// Include a plugin from the WordPress Repository:
array(
'name' => esc_html__( 'WooCommerce', 'text-domain' ),
'slug' => 'woocommerce',
'required' => false,
),
// Include a plugin bundled within a WordPress theme:
array(
'name' => esc_html__( 'Example Plugin', 'text-domain' ),
'slug' => 'example-plugin',
'source' => get_template_directory() . '/inc/plugins/example-plugin.zip',
'required' => false,
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment