Initial commit

This commit is contained in:
2026-02-01 18:10:28 +01:00
commit 52f965c9c6
6 changed files with 772 additions and 0 deletions

49
master-file.php Normal file
View 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();