# codoc/0.8/codoc.php

codoc, version 0.8. 31 lines.

- Page: https://pluginprobe.com/plugins/codoc/0.8/code/codoc.php
- Raw: https://pluginprobe.com/plugins/codoc/0.8/raw/codoc.php
- Modified: 2020-01-21T07:57:56+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.8/code/codoc.php#L10-L20`.

```php
<?php
/*
Plugin Name: codoc
Plugin URI:  https://plugins.svn.wordpress.org/codoc/
Description: 有料記事の販売、サブスクリプション販売、投げ銭の仕組みをすぐに導入できます。
Author:      codoc.jp
Author URI:  https://codoc.jp
Version:     0.7
License:     GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codoc
*/

defined( 'ABSPATH' ) || exit;

const CODOC_PLUGIN_VERSION        = '0.7';
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;


```
