-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmarkdown-editor.php
40 lines (34 loc) · 1.12 KB
/
markdown-editor.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
<?php
/**
* Plugin Name: Markdown Editor
* Plugin URI: https://github.com/seothemes/markdown-editor
* Description: Replaces the default WordPress editor with a Markdown editor for your posts and pages.
* Version: 0.1.3
* Author: SEO Themes
* Author URI: https://www.seothemes.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: jetpack
* Domain Path: /languages
*
* @package markdown-editor
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Define constants.
define( 'PLUGIN_VERSION', '0.1.3' );
define( 'MINIMUM_WP_VERSION', '4.8' );
define( 'PLUGIN_NAME', plugin_basename( __FILE__ ) );
define( 'PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'PLUGIN_URL', plugin_dir_url( __FILE__ ) );
// Check if Jetpack module is enabled.
if ( ! class_exists( 'WPCom_Markdown' ) ) {
include_once PLUGIN_DIR . 'includes/class-easy-markdown.php';
}
// Load Markdown class.
include_once PLUGIN_DIR . 'includes/class-markdown-editor.php';
// Get class instance.
Markdown_Editor::get_instance();
remove_theme_support( 'page', 'wpcom-markdown' );