-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
47 lines (31 loc) · 1.29 KB
/
plugin.php
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
<?php
/*
* Plugin Name: Marco Di Bella — Call to Action (CTA)
* Plugin URI: https://github.com/mdibella-dev/mdb-call-to-action
* Description: This plugin provides a custom post type for managing and displaying so-called Call to Actions (CTA).
* Author: Marco Di Bella
* Author URI: https://www.marcodibella.de
* License: MIT License
* Version: 2.1.4
* Text Domain: mdb-call-to-action
* Domain Path: /languages
*
* @author Marco Di Bella
* @package mdb-call-to-action
*/
namespace mdb_call_to_action;
/** Prevent direct access */
defined( 'ABSPATH' ) or exit;
/** Variables and definitions */
define( __NAMESPACE__ . '\PLUGIN_VERSION', '2.1.4' );
define( __NAMESPACE__ . '\PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( __NAMESPACE__ . '\PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( __NAMESPACE__ . '\CTA_DATA_METAKEY', 'cta_data' );
/** Include files */
require_once PLUGIN_DIR . 'includes/classes/index.php';
require_once PLUGIN_DIR . 'includes/integrations/rankmath.php';
require_once PLUGIN_DIR . 'includes/api.php';
require_once PLUGIN_DIR . 'includes/post-type-cta.php';
require_once PLUGIN_DIR . 'includes/metabox.php';
require_once PLUGIN_DIR . 'includes/backend.php';
require_once PLUGIN_DIR . 'includes/setup.php';