-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmy-plugin-info.php
More file actions
35 lines (31 loc) · 1.15 KB
/
my-plugin-info.php
File metadata and controls
35 lines (31 loc) · 1.15 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
<?php
/**
* Plugin Name: My Plugin Information
* Plugin URI: https://themeist.com/plugins/wordpress/my-plugin-information/#utm_source=wp-plugin&utm_medium=my-plugin-information&utm_campaign=plugins-page
* Description: Developer-focused plugin to fetch and display information from the WordPress.org Plugin API.
* Version: 1.0.0
* Requires at least: 6.0
* Requires PHP: 7.4
* Author: Themeist
* Author URI: https://themeist.com/
* Author Email: [email protected]
* License: GPL-3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: my-plugin-information
*
* @package MyPluginInformation
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// Do nothing if class is already defined.
if ( class_exists( 'My_Plugin_Information' ) ) {
return;
}
// Require includes.
require_once __DIR__ . '/includes/class-my-plugin-information.php';
require_once __DIR__ . '/includes/functions.php';
// Create instance of plugin class.
global $my_plugin_information;
$my_plugin_information = new My_Plugin_Information();
$my_plugin_information->add_hooks();