PluginProbe
codoc / 0.3
codoc v0.3
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
← All changes | codoc.php +9 -13 0.10.3 View file →
@@ -4,9 +4,9 @@
4 4 Plugin URI: https://plugins.svn.wordpress.org/codoc/
5 5 Description: plugin for codoc paywall service.
6 6 Author: codoc.jp
7 7 Author URI: https://codoc.jp
8 -Version: 0.1
8 +Version: 0.3
9 9 License: GPLv2
10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11 11 Text Domain: codoc
12 12 */
@@ -12,22 +12,18 @@
12 12 */
13 13
14 14 defined( 'ABSPATH' ) || exit;
15 15
16 -const CODOC_URL = 'https://codoc.jp';
17 -const CODOC_USERCODE_OPTION_NAME = 'codoc_usercode';
16 +const CODOC_URL = 'https://codoc.jp';
17 +const CODOC_USERCODE_OPTION_NAME = 'codoc_usercode';
18 +const CODOC_AUTHINFO_OPTION_NAME = 'codoc_authinfo';//認証時データ
19 +const CODOC_TOKEN_OPTION_NAME = 'codoc_token'; //API用トークン
20 +const CODOC_SETTINGS_OPTION_NAME = 'codoc_settings';//その他設定値(JSON)
18 21
19 22 if ( version_compare( PHP_VERSION, '5.4', '<' ) )
20 23 {
21 - exit( sprintf( 'The codoc Paywall plugin requires PHP 5.4 or higher. You’re using %s.', PHP_VERSION ) );
24 + exit( sprintf( 'The codoc Paywall plugin requires PHP 5.4 or higher. You’re using %s.', PHP_VERSION ) );
22 25 }
23 26
27 +require_once(plugin_dir_path( __FILE__ ) .'class-codoc.php');
28 +$codoc = new Codoc;
24 29
25 -require 'class-codoc.php';
26 -$codoc = ( new Codoc )->register();
27 -
28 -if ( is_admin() ) {
29 - // gutenberg
30 - require_once 'src/init.php';
31 - // tinymce
32 - $codoc->add_mce();
33 -}