Initial commit
This commit is contained in:
49
master-file.php
Normal file
49
master-file.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* Plugin Name: Siti Plugin Template
|
||||
*
|
||||
* @package PluginPackage
|
||||
* @author Roberto Guagliardo | SitiWeb
|
||||
* @copyright 2019 Roberto Guagliardo | SitiWeb
|
||||
* @license GPL-2.0-or-later
|
||||
*
|
||||
* @wordpress-plugin
|
||||
* Plugin Name: Siti Plugin Template
|
||||
* Plugin URI: https://plugins.robert.ooo/plugin/
|
||||
* Description: Description of the plugin.
|
||||
* Version: 1.0.0
|
||||
* Requires at least: 5.2
|
||||
* Requires PHP: 7.2
|
||||
* Author: Roberto Guagliardo | SitiWeb
|
||||
* Author URI: https://sitiweb.nl/
|
||||
* Text Domain: plugin-slug
|
||||
* License: GPL v2 or later
|
||||
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
||||
* Update URI: https://example.com/my-plugin/
|
||||
* Requires Plugins: my-plugin, yet-another-plugin
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! defined( 'PLUGIN_SLUG_VERSION' ) ) {
|
||||
$plugin_data = get_file_data(
|
||||
__FILE__,
|
||||
[
|
||||
'Version' => 'Version',
|
||||
],
|
||||
false
|
||||
);
|
||||
|
||||
$plugin_version = isset( $plugin_data['Version'] ) && $plugin_data['Version'] ? $plugin_data['Version'] : '1.0.0';
|
||||
define( 'PLUGIN_SLUG_VERSION', $plugin_version );
|
||||
}
|
||||
|
||||
if( ! class_exists( 'SitiWebUpdater2' ) ){
|
||||
include_once( plugin_dir_path( __FILE__ ) . 'includes/SitiWebUpdater2.php' );
|
||||
}
|
||||
|
||||
$updater = new SitiWebUpdater2( __FILE__ );
|
||||
$updater->set_owner( 'roberto' );
|
||||
$updater->set_repository( 'siti-plugin-template' );
|
||||
$updater->initialize();
|
||||
Reference in New Issue
Block a user