-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmotionkit.php
More file actions
50 lines (42 loc) · 1.64 KB
/
Copy pathmotionkit.php
File metadata and controls
50 lines (42 loc) · 1.64 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: Motionkit
* Plugin URI: https://motionkit.io
* Description: Connect WordPress with MotionKit to create, preview, publish, and manage visual website animations from the MotionKit editor.
* Version: 1.3.0
* Author: wealcoder
* Author URI: https://profiles.wordpress.org/wealcoder/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: motionkit
* Domain Path: /languages
* Requires at least: 6.8
* Requires PHP: 7.4
*
* @package MotionKit
* @since 1.0.0
*/
// Prevent direct access
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Check if plugin is already loaded — must run before the define() calls so a second active copy bails out without emitting "already defined" warnings.
if ( defined( 'MOTIONKIT_LOADED' ) ) {
return;
}
// Define plugin constants
define( 'MOTIONKIT_VERSION', '1.3.0' );
define( 'MOTIONKIT_PLUGIN_FILE', __FILE__ );
define( 'MOTIONKIT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'MOTIONKIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'MOTIONKIT_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
define( 'MOTIONKIT_LOADED', true );
// Public API for other plugins and themes. Loaded before the plugin class so
// the functions exist from the moment this file is included — an integration
// hooking 'plugins_loaded' at any priority can call them, rather than having
// to guess when MotionKit finished booting.
require_once MOTIONKIT_PLUGIN_DIR . 'includes/api-functions.php';
// Load the main plugin class
require_once MOTIONKIT_PLUGIN_DIR . 'includes/Plugin.php';
// Initialize the plugin
MotionKit\Plugin::get_instance( MOTIONKIT_PLUGIN_FILE );