# codoc/0.5/codoc.php

codoc, version 0.5. 31 lines.

- Page: https://pluginprobe.com/plugins/codoc/0.5/code/codoc.php
- Raw: https://pluginprobe.com/plugins/codoc/0.5/raw/codoc.php
- Modified: 2019-12-11T15:00:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/codoc/0.5/code/codoc.php#L10-L20`.

```php
<?php
/*
Plugin Name: codoc
Plugin URI:  https://plugins.svn.wordpress.org/codoc/
Description: plugin for codoc paywall service.
Author:      codoc.jp
Author URI:  https://codoc.jp
Version:     0.5
License:     GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codoc
*/

defined( 'ABSPATH' ) || exit;

const CODOC_PLUGIN_VERSION        = '0.5';
const CODOC_URL                   = 'https://codoc.jp';
const CODOC_USERCODE_OPTION_NAME  = 'codoc_usercode';
const CODOC_AUTHINFO_OPTION_NAME  = 'codoc_authinfo';//認証時データ
const CODOC_TOKEN_OPTION_NAME     = 'codoc_token';   //API用トークン
const CODOC_SETTINGS_OPTION_NAME  = 'codoc_settings';//その他設定値(JSON)

if ( version_compare( PHP_VERSION, '5.4', '<' ) )
{
	exit( sprintf( 'The codoc Paywall plugin requires PHP 5.4 or higher. You’re using %s.', PHP_VERSION ) );
}

require_once(plugin_dir_path( __FILE__ ) .'class-codoc.php');
$codoc = new Codoc;


```
