-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmarkdown-alternate.php
More file actions
30 lines (25 loc) · 922 Bytes
/
markdown-alternate.php
File metadata and controls
30 lines (25 loc) · 922 Bytes
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
<?php
/**
* Plugin Name: Markdown Alternate
* Plugin URI: https://github.com/ProgressPlanner/markdown-alternate
* Description: Provides markdown versions of posts and pages via .md URLs
* Version: 1.1.0
* Requires at least: 6.0
* Requires PHP: 7.4
* Author: Joost de Valk
* Author URI: https://joost.blog
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: markdown-alternate
*/
if (!defined('ABSPATH')) {
exit;
}
define('MARKDOWN_ALTERNATE_FILE', __FILE__);
define('MARKDOWN_ALTERNATE_VERSION', '1.1.0');
require_once __DIR__ . '/vendor/autoload.php';
// Register activation and deactivation hooks (must be in main plugin file)
register_activation_hook(__FILE__, ['MarkdownAlternate\Plugin', 'activate']);
register_deactivation_hook(__FILE__, ['MarkdownAlternate\Plugin', 'deactivate']);
// Initialize the plugin
\MarkdownAlternate\Plugin::instance();