Last active
August 29, 2015 14:22
-
-
Save fuyuko/b6eb8b419ae10f70d3ee to your computer and use it in GitHub Desktop.
WordPress Plugin Development Template Files
This file contains 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
=== Plugin Name === | |
Contributors: fuyuko | |
Donate link: http://fuyuko.net/donation/ | |
Tags: | |
Requires at least: 4.2.2 | |
Tested up to: 4.2.2 | |
Stable tag: | |
License: GPLv2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
WC requires at least: 2.3.9 | |
WC tested up to: 2.3.9 | |
Short plugin description | |
== Description == | |
Long plugin description | |
= Features = | |
= Notes = | |
== Installation == | |
Starndard Wordpress Plugin install. | |
1. Upload `plugin-filename.zip` using Wordpress plugin upload feature, or unzip the file and upload the content to the `/wp-content/plugins/` directory | |
2. Activate the plugin through the 'Plugins' menu in WordPress | |
== Frequently Asked Questions == | |
== Screenshots == | |
1. screenshot1.png description | |
== Changelog == | |
= 0.1 = | |
This file contains 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 | |
/* | |
Plugin Name: Plugin Name | |
Plugin URI: https://github.com/fuyuko/plugin-repository | |
Description: Plugin description | |
Author: Fuyuko Gratton | |
Version: 0.1 | |
Author URI: http://fuyuko.net/ | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly | |
} | |
/** | |
* For WooCommerce Extension Plugin - Check if WooCommerce is active | |
**/ | |
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment