-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin-name.php
More file actions
39 lines (35 loc) · 1.32 KB
/
plugin-name.php
File metadata and controls
39 lines (35 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php // phpcs:disable WooCommerce.Commenting.CommentTags
/**
* Plugin Name
*
* @package PluginPackage
* @author Your Name or Company Name
* @copyright 2025 Your Name or Company Name
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Plugin Name
* Plugin URI: https://wordpress.org/plugins/plugin-slug-name
* Description: Description of the plugin.
* Version: 1.0.0
* Requires at least: 6.0
* Requires PHP: 7.4
* Requires Plugins: my-plugin, yet-another-plugin
* Author: Your Name or Company Name
* Author URI: https://your-domain.com
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Update URI: https://your-domain-for-updates.com/my-plugin
* Text Domain: plugin-slug-name
* Domain Path: /languages
* Network: true
*/
namespace YourNameSpace;
defined( 'ABSPATH' ) || exit;
if ( ! is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
_doing_it_wrong( __NAMESPACE__, 'Autoload could not be retrieved.', '1.0.0' );
return;
}
require __DIR__ . '/vendor/autoload.php';
register_activation_hook( __FILE__, __NAMESPACE__ . '\Admin\Setup::on_activation' );
register_deactivation_hook( __FILE__, __NAMESPACE__ . '\Admin\Setup::on_deactivation' );