Skip to content
Snippets Groups Projects
Select Git revision
  • 48aa5fae4a276fcf8ac71ef55f7729bfd983987d
  • master default protected
  • bugfix/wordpress-review
  • fix/duplicate
  • bugfix/get_current_screen_fail
  • feature/dismiss-nonce
  • replace-dodgy-path
  • bugfix/notice-not-show
  • devel
  • 3.3.0
  • 3.2.5
  • 3.2.4
  • 3.2.3
  • 3.2.2
  • 3.2.1
  • 3.2.0
  • 3.2.0-beta7
  • 3.2.0-beta6
  • 3.2.0-beta5
  • 3.2.0-beta4
  • 3.2.0-beta3
  • 3.2.0-beta2
  • 3.2.0-beta1
  • 3.1.4
  • 3.1.4-beta1
  • 3.1.3
  • 3.1.1
  • 3.1
  • 3.0
29 results

TestAjaxHandler.php

Blame
  • plugin-template.php 2.05 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/
     * ​
     * Requires at least: 5.7
     * Tested up to: 6.0
     * WC requires at least: 6.6
     * WC tested up to: 7.0
     * Requires PHP: 7.2
     *
     * @package \WPDesk\PluginTemplate
     * ​
     * Copyright 2022 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
     */
    
    use WPDesk\PluginTemplate\Plugin;
    
    defined( 'ABSPATH' ) || exit;
    
    require_once __DIR__ . '/vendor/autoload.php';
    
    /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
    $plugin_version = '1.0.0';
    
    $plugin_name        = 'WP Desk Plugin Template';
    $plugin_class_name  = Plugin::class;
    $plugin_text_domain = 'plugin-template';
    $product_id         = 'WP Desk Plugin Template';
    $plugin_file        = __FILE__;
    $plugin_dir         = __DIR__;
    
    // todo: only for paid plugins.
    $plugin_shops = [
    	'default' => 'https://www.wpdesk.net/',
    ];
    
    $requirements = [
    	'php'     => '7.2',
    	'wp'      => '5.7',
    	'plugins' => [
    		[
    			'name'      => 'woocommerce/woocommerce.php',
    			'nice_name' => 'WooCommerce',
    			'version'   => '6.6',
    		],
    	],
    ];
    
    // todo: only for free plugins.
    require __DIR__ . '/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/plugin-init-php52-free.php';