Refactor plugin structure: update main file and add SitiWashInstructions class for wash instructions management
All checks were successful
Build & Release Plugin / release (push) Successful in 8s

This commit is contained in:
2026-02-01 17:16:52 +00:00
parent 52f965c9c6
commit 3d1545da06
4 changed files with 393 additions and 52 deletions

View File

@@ -0,0 +1,53 @@
<?php
/**
* Plugin Name: Siti Wash Instructions
*
* @package PluginPackage
* @author Roberto Guagliardo | SitiWeb
* @copyright 2019 Roberto Guagliardo | SitiWeb
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Siti Wash Instructions
* Plugin URI: https://plugins.robert.ooo/plugin/
* Description: Voeg wasinstructies toe aan producten en merken in WooCommerce.
* Version: 1.0.0
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Roberto Guagliardo | SitiWeb
* Author URI: https://sitiweb.nl/
* Text Domain: siti-wash-instructions
* 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('SITI_WASH_INSTRUCTIONS_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('SITI_WASH_INSTRUCTIONS_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-wash-instructions');
$updater->initialize();
include_once plugin_dir_path(__FILE__) . 'includes/SitiWashInstructions.php';
SitiWashInstructions::init();