| 1 |
=== codoc === |
| 2 |
Contributors: codoc |
| 3 |
Donate link: https://codoc.jp |
| 4 |
Tags: paywall, subscription, membership, tipping, digital downloads |
| 5 |
Requires at least: 4.6 |
| 6 |
Tested up to: 6.8.2 |
| 7 |
Stable tag: 0.9.60 |
| 8 |
Requires PHP: 5.4 |
| 9 |
License: GPLv2 or later |
| 10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 |
|
| 12 |
A WordPress plugin for monetizing your website with paid articles, Reader Plans, and tipping. |
| 13 |
|
| 14 |
== Description == |
| 15 |
|
| 16 |
[codoc](https://codoc.jp) is a simple and powerful WordPress paywall plugin that enables creators to sell paid articles, offer Reader Plans (Subscription / Membership), and accept tips. |
| 17 |
|
| 18 |
Originally built for Japanese creators, codoc is also fully compatible with users in the US/EU. |
| 19 |
Payment is processed via Stripe, and buyers worldwide can purchase using a valid credit card (currency: JPY/USD/EUR). |
| 20 |
|
| 21 |
After setup, the plugin adds a codoc block※ to the post editor. |
| 22 |
※Compatible with both Gutenberg and the Classic Editor (TinyMCE). |
| 23 |
|
| 24 |
### How it works |
| 25 |
Content placed **below** the codoc block becomes the paid section and is hidden from non-buyers. |
| 26 |
Content placed **above** remains freely available. |
| 27 |
|
| 28 |
The codoc block: |
| 29 |
- displays the purchase interface |
| 30 |
- handles buyer authentication |
| 31 |
- allows per-article settings such as price or Reader Plan availability |
| 32 |
- all revenue/customer management is available on codoc.jp |
| 33 |
|
| 34 |
More details : |
| 35 |
[codoc for WordPress](https://codoc.jp/lp_wp) |
| 36 |
|
| 37 |
Help center : |
| 38 |
[FAQ](https://codoc.jp/docs/faq) |
| 39 |
|
| 40 |
== Features == |
| 41 |
|
| 42 |
- Article paywall |
| 43 |
- One-time purchases |
| 44 |
- Reader Plans (Subscription / Membership) |
| 45 |
- Tipping support |
| 46 |
- Stripe payments (Credit card / Apple Pay / Google Pay / Konibini) |
| 47 |
- Gutenberg & Classic Editor support |
| 48 |
- Featured image support |
| 49 |
- Revenue & customer management via codoc.jp |
| 50 |
- Insert custom HTML before/after codoc tags |
| 51 |
- CSS override support |
| 52 |
- Safe authentication & Stripe-level fraud prevention |
| 53 |
|
| 54 |
== Installation == |
| 55 |
|
| 56 |
1. Go to **Plugins → Add New** and search for “codoc”. |
| 57 |
2. Install and activate the plugin. |
| 58 |
3. Go to **Settings → codoc** and log in or register for a codoc account. |
| 59 |
4. Continue to the codoc integration page and click **Authenticate**. |
| 60 |
5. Return to the codoc settings page and verify that your account shows "**authenticated**". |
| 61 |
|
| 62 |
After setup, search for **codoc** in the block inserter. |
| 63 |
※Classic Editor users will see a codoc button added to the toolbar. |
| 64 |
|
| 65 |
== FAQ == |
| 66 |
|
| 67 |
= What are the requirements for creators to use codoc? = |
| 68 |
Creators must reside in **Japan, the United States, or the EU** and have a bank account in each country. |
| 69 |
|
| 70 |
= Can users outside Supported coutry purchase content? = |
| 71 |
Yes. Anyone with a valid credit card can purchase. |
| 72 |
Transactions are processed in **JPY, USD or EUR** . |
| 73 |
|
| 74 |
= Where are article contents stored? = |
| 75 |
All content is stored on **both WordPress and codoc**. |
| 76 |
|
| 77 |
= Will publication status sync to codoc? = |
| 78 |
Yes. |
| 79 |
If the WordPress article is **published**, it is published on codoc as well. |
| 80 |
Otherwise, it remains **unpublished**. |
| 81 |
|
| 82 |
= What happens to codoc content if the WordPress article is deleted? = |
| 83 |
It becomes **unpublished** on codoc. |
| 84 |
|
| 85 |
= How can I preview the article as buyers/non-buyers? = |
| 86 |
- As buyer: Click **"Sign in to restore purchase"** and authenticate with your codoc account. |
| 87 |
- As non-buyer: Log out and view the article normally. |
| 88 |
|
| 89 |
= I can see paid content even without purchasing. Why? = |
| 90 |
You are logged in as the **codoc creator**, who authored the article. |
| 91 |
|
| 92 |
= Can I use the Classic Editor? = |
| 93 |
Yes. |
| 94 |
After integration, a codoc button is added to the toolbar. |
| 95 |
|
| 96 |
If TinyMCE Advanced is installed, enable: |
| 97 |
**"keep paragraph tags in the Classic block and the Classic Editor"** |
| 98 |
|
| 99 |
= Can I use featured images? = |
| 100 |
Yes. |
| 101 |
The WordPress featured image is used on codoc. |
| 102 |
|
| 103 |
= Can I customize CSS? = |
| 104 |
Yes. |
| 105 |
Specify your custom CSS file in **Settings → codoc**. |
| 106 |
[Base stylesheet](https://codoc.jp/css/paywall.css) |
| 107 |
※HTML output may change without notice. |
| 108 |
|
| 109 |
You can see [sample customized css](https://codoc.jp/me/widgets?mode=theme) on management screen.(sign-in is required) |
| 110 |
|
| 111 |
|
| 112 |
= Can I change the permalink registered in codoc? = |
| 113 |
Permalinks are retrieved via `get_permalink()`. |
| 114 |
If running through reverse proxies or special routing, adjust via codoc’s “Replacement Settings”. |
| 115 |
|
| 116 |
= “This block contains unexpected or invalid content.” appears = |
| 117 |
Click **“Attempt Block Recovery”** in the block settings menu. |
| 118 |
|
| 119 |
= Do script tags work? = |
| 120 |
Yes. |
| 121 |
External script tags have been supported. (Twitter/Instagram embeds, etc.) |
| 122 |
|
| 123 |
= I want to add buttons at the end of the article = |
| 124 |
Blocks added **below** the codoc tag are hidden. |
| 125 |
Use: |
| 126 |
**Settings → codoc → Insert HTML before/after codoc tags** |
| 127 |
|
| 128 |
= Shortcodes are shown as plain text inside paid areas = |
| 129 |
Add this to the debug settings: |
| 130 |
|
| 131 |
{ “the_content_filter_priority”: 1000000 } |
| 132 |
|
| 133 |
Increase the value if needed. |
| 134 |
|
| 135 |
== Screenshots == |
| 136 |
|
| 137 |
1. Paywall section embedded within a WordPress post. |
| 138 |
|
| 139 |
2. Purchase modal supporting one-time payments, Reader Plans, and tips. |
| 140 |
|
| 141 |
3. Tip / Support screen for voluntary contributions. |
| 142 |
|
| 143 |
4. Reader Plan options with pricing and benefits. |
| 144 |
|
| 145 |
5. Unlocked content after successful purchase |
| 146 |
|
| 147 |
6. Post editor settings to enable content sales and set pricing. |
| 148 |
|
| 149 |
7. Classic editor is also supported. |
| 150 |
|
| 151 |
8. Same settings as Gutenberg editor are possible. |
| 152 |
|
| 153 |
9. Plugin settings page with straightforward codoc and Stripe integration |
| 154 |
|
| 155 |
10. Mobile view of the Paywall and purchase interface. |
| 156 |
|
| 157 |
== Changelog == |
| 158 |
|
| 159 |
= 0.9.51 = |
| 160 |
|
| 161 |
* Support for i18n (internationalization) |
| 162 |
|
| 163 |
= 0.9.3 = |
| 164 |
|
| 165 |
* Added support for limited publication. |
| 166 |
|
| 167 |
= 0.9.13 = |
| 168 |
|
| 169 |
* Added a setting to add attributes to the codoc script tags. |
| 170 |
|
| 171 |
* If a password is specified when posting an article, the article status on codoc will be set as "limited publication". |
| 172 |
|
| 173 |
= 0.9.10 = |
| 174 |
|
| 175 |
* Added support for external service integration. |
| 176 |
|
| 177 |
= 0.9.9 = |
| 178 |
|
| 179 |
* Added support for flexible pricing. |
| 180 |
|
| 181 |
= 0.9.8 = |
| 182 |
|
| 183 |
* Revised the design of the settings page. |
| 184 |
|
| 185 |
* Added functionality to show or hide "Powered By" for likes and codoc in the paywall. |
| 186 |
|
| 187 |
* Added functionality to change the button text in the paywall. |
| 188 |
|
| 189 |
= 0.9.7 = |
| 190 |
|
| 191 |
* Added theme settings. |
| 192 |
|
| 193 |
= 0.9.6 = |
| 194 |
|
| 195 |
* Fixed an issue where the paid part would be displayed without the execution of filters by other plugins. |
| 196 |
|
| 197 |
* Added the option to customize the support button description for the support button auto-insertion. |
| 198 |
|
| 199 |
= 0.9.5 = |
| 200 |
|
| 201 |
* Added an option to automatically insert a support button at the end of the content if the codoc tags are not inserted in the article. |
| 202 |
|
| 203 |
= 0.9.4 = |
| 204 |
|
| 205 |
* Modified to display a "Read More" link when displayed in AMP and redirect to the main site. |
| 206 |
|
| 207 |
= 0.9.3 = |
| 208 |
|
| 209 |
* Fixed a bug where user code and token could not be entered directly. |
| 210 |
|
| 211 |
= 0.9.2 = |
| 212 |
|
| 213 |
* Disabled the codoc button in the Classic Editor (TinyMCE). |
| 214 |
|
| 215 |
= 0.9.1 = |
| 216 |
|
| 217 |
* Fixed a bug where codoc integration was not possible. |
| 218 |
|
| 219 |
* Fixed a bug where authentication could not be canceled. |
| 220 |
|
| 221 |
= 0.9 = |
| 222 |
|
| 223 |
* Refactored program source code. |
| 224 |
|
| 225 |
= 0.8.9 = |
| 226 |
|
| 227 |
* Added the ability to insert HTML before and after codoc tags in the settings page. |
| 228 |
|
| 229 |
= 0.8.8 = |
| 230 |
|
| 231 |
* Fixed an issue causing errors in WordPress versions below 5. |
| 232 |
|
| 233 |
* Fixed an issue where codoc tags did not work in the LP template of the THETHOR theme. |
| 234 |
|
| 235 |
* Changed the attribute position of the cms.js script tag to make the codoc tags work. |
| 236 |
|
| 237 |
= 0.8 = |
| 238 |
|
| 239 |
* Added support for the Classic Editor (TinyMCE). |
| 240 |
|
| 241 |
* Changed the Gutenberg block format accordingly. |
| 242 |
|
| 243 |
= 0.7 = |
| 244 |
|
| 245 |
* Added a settings link to the codoc area in the plugin list. |
| 246 |
|
| 247 |
= 0.6 = |
| 248 |
|
| 249 |
* Added a visual boundary between the free and paid parts in the preview. |
| 250 |
|
| 251 |
= 0.5 = |
| 252 |
|
| 253 |
* Added URL replacement function for registration in codoc. |
| 254 |
|
| 255 |
= 0.4 = |
| 256 |
|
| 257 |
* Minor fixes. |
| 258 |
|
| 259 |
= 0.3 = |
| 260 |
|
| 261 |
* Added codoc block functionality. |
| 262 |
|
| 263 |
= 0.2 = |
| 264 |
|
| 265 |
* Added a setting item for custom CSS path. |
| 266 |
|
| 267 |
= 0.1 = |
| 268 |
|
| 269 |
* Initial release. |
| 270 |
|
| 271 |
== Upgrade Notice == |
| 272 |
|
| 273 |
|
| 274 |
`<?php code(); // goes in backticks ?>` |
| 275 |
|