-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathma-plugin.php
More file actions
50 lines (44 loc) · 1.43 KB
/
Copy pathma-plugin.php
File metadata and controls
50 lines (44 loc) · 1.43 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
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Plugin Name: Medical Academic Enhancements
* Plugin URI:
* Description: WordPress content model for Medical Academic CPD platform with custom post types for articles, webinars, magazines, research papers, and learning journeys with comprehensive taxonomy and field support.
* Version: 1.0.0
* Requires at least: 6.5
* Requires PHP: 8.0
* Requires Plugins: secure-custom-fields
* Author: LightSpeed
* Author URI: https://developer.lsdev.biz
* License: GPL-2.0-or-later
* License URI:
* Text Domain: ma-plugin
* Domain Path: /languages
*
* @package ma_plugin
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Plugin constants.
define( 'MA_PLUGIN_VERSION', '1.0.0' );
define( 'MA_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'MA_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'MA_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
// Include helper functions.
require_once MA_PLUGIN_DIR . 'inc/helper-functions.php';
// Include the Core class.
require_once MA_PLUGIN_DIR . 'inc/class-core.php';
/**
* Initialise the plugin and return the main instance.
*
* @return \ma_plugin\classes\Core Main plugin instance.
*/
function ma_plugin_init() {
global $ma_plugin;
if ( null === $ma_plugin ) {
$ma_plugin = new \ma_plugin\classes\Core();
}
return $ma_plugin;
}
// Initialize the plugin.
ma_plugin_init();