Select Git revision
plugin-template.php
-
Bartek Jaskulski authored
Signed-off-by:
Bart Jaskulski <bjaskulski@protonmail.com>
Bartek Jaskulski authoredSigned-off-by:
Bart Jaskulski <bjaskulski@protonmail.com>
plugin-template.php 2.08 KiB
<?php
/**
* Plugin Name: WP Desk Plugin Template
* Plugin URI: https://www.wpdesk.net/products/plugin-template/
* Description: WP Desk Plugin Template
* Version: 1.0.0
* Author: WP Desk
* Author URI: https://www.wpdesk.net/
* Text Domain: plugin-template
* Domain Path: /lang/
*
* Requires at least: 6.2
* Tested up to: 6.4
* WC requires at least: 8.0
* WC tested up to: 8.2
* Requires PHP: 7.3
*
* Copyright 2023 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/',
'pl_PL' => 'https://www.wpdesk.pl/',
];
$requirements = [
'php' => '7.3',
'wp' => '6.2',
'repo_plugins' => [
[
'name' => 'woocommerce/woocommerce.php',
'nice_name' => 'WooCommerce',
'version' => '8.0',
],
],
];
// todo: only for free plugins. For paid plugins use plugin-init-php52.php.
require __DIR__ . '/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/plugin-init-php52-free.php';