PluginProbe
codoc / 0.2
codoc v0.2
0.9.8.8 0.9.8.9 0.9.9 0.9.9.1 trunk 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.8.1 0.8.2 0.8.3 0.8.4 0.8.6 0.8.7 0.8.8 0.8.9 0.9 0.9.1 0.9.10 0.9.11 All 114 releases
codoc / codoc.php

codoc.php in codoc 0.2, at codoc.php

37 lines 862 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: codoc
4 Plugin URI: https://plugins.svn.wordpress.org/codoc/
5 Description: plugin for codoc paywall service.
6 Author: codoc.jp
7 Author URI: https://codoc.jp
8 Version: 0.1
9 License: GPLv2
10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11 Text Domain: codoc
12 */
13
14 defined( 'ABSPATH' ) || exit;
15
16 const CODOC_URL = 'https://codoc.jp';
17 const CODOC_USERCODE_OPTION_NAME = 'codoc_usercode';
18 const CODOC_SETTINGS_OPTION_NAME = 'codoc_settings';
19
20 if ( version_compare( PHP_VERSION, '5.4', '<' ) )
21 {
22 exit( sprintf( 'The codoc Paywall plugin requires PHP 5.4 or higher. You’re using %s.', PHP_VERSION ) );
23 }
24
25
26 require 'class-codoc.php';
27 $codoc = ( new Codoc )->register();
28
29 if ( is_admin() ) {
30 // setting
31 $codoc->add_settings();
32 // gutenberg
33 require_once 'src/init.php';
34 // tinymce
35 $codoc->add_mce();
36 }
37