Skip to content
Snippets Groups Projects
Select Git revision
  • 65faf398c51a2fd7a8a41c4d72f102ca4554ff78
  • master default protected
  • fix/woo-stubs-dir
  • default-packages
  • use-internal-packages
  • update-setup
  • feature/wpdesk-cs
  • 2.5.3
  • 2.5.2
  • 2.5.1
  • 2.5.0
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3
  • 2.2.1
  • 2.2
  • 2.1
  • 2.0
  • 1.10.15
  • 1.10.12
  • 1.10.8
  • 1.10.7
  • 1.10.6
  • 1.10.5
  • 1.10.3
  • 1.10.2
27 results

plugin-template.php

Blame
  • plugin-template.php 1.74 KiB
    <?php
    /*
    	Plugin Name: WP Desk Plugin Template
    	Plugin URI: https://www.wpdesk.net/products/plugin-template/
    	Description: WP Desk Plugin Template
    	Product: WP Desk Plugin Template
    	Version: 1.0
    	Author: WP Desk
    	Author URI: https://www.wpdesk.net/
    	Text Domain: plugin-template
    	Domain Path: /lang/
    
    	Copyright 2016 WP Desk Ltd.
    
    	This program is free software; you can redistribute it and/or modify
    	it under the terms of the GNU General Public License as published by
    	the Free Software Foundation; either version 2 of the License, or
    	(at your option) any later version.
    
    	This program is distributed in the hope that it will be useful,
    	but WITHOUT ANY WARRANTY; without even the implied warranty of
    	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    	GNU General Public License for more details.
    
    	You should have received a copy of the GNU General Public License
    	along with this program; if not, write to the Free Software
    	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    
    */
    
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    } // Exit if accessed directly
    
    /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
    $plugin_version           = '1.0.0';
    $plugin_release_timestamp = '2020-05-09';
    
    $plugin_name        = 'WP Desk Plugin Template';
    $plugin_class_name  = '\WPDesk\PluginTemplate\Plugin';
    $plugin_text_domain = 'plugin-template';
    $product_id         = 'plugin-template';
    $plugin_file        = __FILE__;
    $plugin_dir         = dirname( __FILE__ );
    
    $requirements = [
    	'php'     => '5.6',
    	'wp'      => '4.5',
    	'plugins' => [
    		[
    			'name'      => 'woocommerce/woocommerce.php',
    			'nice_name' => 'WooCommerce',
    			'version'   => '3.0',
    		],
    	],
    ];
    
    require __DIR__ . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/plugin-init-php52.php';