With this plugin, you can quickly implement the sale of paid articles, subscription services, and tipping on your WordPress website.

After configuring the plugin, it provides the codoc block※ on the post editor screen for selling articles.
※The codoc block is compatible with both the Gutenberg block editor and the Classic Editor (TinyMCE).

The sales mechanism is simple. Blocks (or text) placed below the codoc block in the post content can only be accessed by users who have made a payment (credit card transaction). Conversely, blocks placed above are accessible to all users for free. The codoc block not only displays product information for purchasing articles but also manages authentication for users who have purchased the articles. Pricing, subscription specifications, and other sales conditions can be specified on a per-article basis within the block settings.

Additionally, all the necessary features for content sales, such as revenue management and customer management, are available on the codoc website. Purchase history and subscription management for customers who have made article purchases are also provided on the codoc website.



Denne utvidinga gjev 2 blokker.

  • Cgb Block Wordpress
  • codoc


  1. Search for the «codoc» plugin from «Plugins Add New» in your WordPress dashboard.

  2. Install and activate the codoc plugin.

  3. Go to «Settings codoc Settings» and log in or register for a codoc account.

  4. Proceed to the codoc blog integration feature and click «Authenticate».

  5. Go to the codoc Settings page in WordPress and confirm the display of «your@address authenticated» message.

Once the above settings are complete, you can start using the codoc block by searching for «codoc» in the «Add Block» section of the post editor※.
※For users of the Classic Editor, a codoc configuration button will be added.

Vanlege spm.

What are the conditions for creators to sell content using codoc?

The current requirement is to have a residence and a bank account within Japan.

What are the conditions for users to purchase content?

Users who can use a credit card, including those outside of Japan, can make purchases. The currency used is only yen.

Where are the free and paid parts of the articles stored?

All article content is saved in both WordPress and codoc.

Will the publication status be reflected in codoc?

Yes, it will be reflected. It will only be published on the codoc side if it is published on the WordPress side. (Otherwise, it will be set as unpublished on codoc.)

What happens to the codoc articles if I delete them in WordPress?

They will become unpublished.

How can I see how the article appears to buyers and non-buyers?

The view for buyers will be the same as when they log in with their codoc account by clicking «Already purchased, log in» displayed in the article. (The purchase button will disappear, and they can access the paid area.) The view for non-buyers will be the same as the state before logging in (not logged in). When you log in with an account other than your own, only the login button will not be displayed.

I can see the paid area of the article even though I haven’t purchased it. Why is that?

It is because you are logged in as the codoc creator, who is the author of the relevant article being sold on the website.

Can I use the plugin in the Classic Editor?

Yes, it is possible. After completing the integration settings, a codoc logo button will be added to the editor toolbar. You can use this button to add codoc blocks and configure article settings such as pricing in the main text. We also recommend enabling the «keep paragraph tags in the Classic block and the Classic Editor» option in the settings of the TinyMCE Advanced plugin that is installed for use.

Can I specify a featured image?

The featured image specified in the WordPress post will be used as the codoc featured image.

Can I customize the CSS?

You can override the CSS by specifying the custom CSS path in the codoc settings screen. Please import the original CSS file from and overwrite the relevant parts. Note that the HTML output generated by codoc may be subject to changes without prior notice, so please be aware of that.

Can I change the permalink registered in codoc?

The links are obtained from get_permalink(). If it is different from what is expected, such as when running WordPress under a reverse proxy, you can change it using the replacement settings in the codoc settings screen.

The codoc block displays «This block contains unexpected or invalid content.»

Please perform «Recover Block» from the settings button in the upper right corner of the block.

Does JavaScript code work?

Since April 22, 2020, the specification has been changed to allow script tags for external JavaScript loading to work. This supports embedding blocks for platforms like Twitter and Instagram in Gutenberg.

I want to add a button at the end of the article body.

If you add a block below the codoc tags, it will be hidden. Therefore, if you want to add social sharing buttons or advertisements, etc., please use the «Insert HTML before and after codoc tags» feature in the «Settings codoc» section, instead of doing it directly on the post editor.

Shortcodes are being displayed as they are in the paid part.

In the «Settings codoc» section, specify the following in the debug parameter. If it doesn’t work, increase the number:

{ «the_content_filter_priority»: 1000000 }


There are no reviews for this plugin.

Bidragsytarar og utviklarar

“codoc” is open source software. The following people have contributed to this plugin.


Omset “codoc” til ditt eige språk.

Interested in development?

Les kjeldekoden, sjekk SVN-lageret eller abonner på utviklingsloggen med RSS.



  • Support for i18n (internationalization)


  • Added support for limited publication.


  • Added a setting to add attributes to the codoc script tags.

  • If a password is specified when posting an article, the article status on codoc will be set as «limited publication».


  • Added support for external service integration.


  • Added support for flexible pricing.


  • Revised the design of the settings page.

  • Added functionality to show or hide «Powered By» for likes and codoc in the paywall.

  • Added functionality to change the button text in the paywall.


  • Added theme settings.


  • Fixed an issue where the paid part would be displayed without the execution of filters by other plugins.

  • Added the option to customize the support button description for the support button auto-insertion.


  • 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.


  • Modified to display a «Read More» link when displayed in AMP and redirect to the main site.


  • Fixed a bug where user code and token could not be entered directly.


  • Disabled the codoc button in the Classic Editor (TinyMCE).


  • Fixed a bug where codoc integration was not possible.

  • Fixed a bug where authentication could not be canceled.


  • Refactored program source code.


  • Added the ability to insert HTML before and after codoc tags in the settings page.


  • Fixed an issue causing errors in WordPress versions below 5.

  • Fixed an issue where codoc tags did not work in the LP template of the THETHOR theme.

  • Changed the attribute position of the cms.js script tag to make the codoc tags work.


  • Added support for the Classic Editor (TinyMCE).

  • Changed the Gutenberg block format accordingly.


  • Added a settings link to the codoc area in the plugin list.


  • Added a visual boundary between the free and paid parts in the preview.


  • Added URL replacement function for registration in codoc.


  • Minor fixes.


  • Added codoc block functionality.


  • Added a setting item for custom CSS path.


  • Initial release.