China Video Block


馃嚚馃嚦 馃幀 馃П This Gutenberg block allows for embedding a video in a WordPress post or page. If the user who views the page is in China, a different video will show from users in the rest of the world. This is to appropriately deal with China’s Internet wall which blocks YouTube and other video platforms.

For more information on how to develop this block, please see the github repo.

The plugin has been developed for CNCF and The Linux Foundation.


  • China Video block inserted into a post.


Este plugin proporciona 1 bloque.

China Video Block


  1. Upload the plugin files to the /wp-content/plugins/china-video-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->China Video Block screen to set the token
  4. Insert the block into a post or page.


2 de Agosto, 2019
If you're working on optimizing your website for Chinese-based customers - this is a great plugin the simplifies the ability to have a fallback to a non-YouTube video so your Chinese customers could have the same experience as others. Also, the support was fantastic! Great developer!
Ler a 1 opini贸n

Colaboradores e desenvolvedores

“China Video Block” 茅 un software de c贸digo aberto. As seguintes persoas colaboraron con este plugin.


“China Video Block” foron traducidas ao 2 locales. Grazas a os desenvolvedores polas s煤as colaboaci贸ns.

Traducir “China Video Block” ao teu idioma.

Interesado no desenvolvemento?

Revisa o c贸digo, bota unha ollada aorepositorio SVN, ou subscr铆bete ao log de desenvolvemento por RSS.

Rexistro de cambios


  • loads the front-end script using wp_enqueue_script() only when the block is present on the page


  • fixed the ver number on the script so that the block doesn’t keep breaking


  • added a browser-busting version querystring for the front.js file so that browsers download the new file when it updates


  • added compiled build file


  • rewrite of the code to favor the China video; the problem was that, when favoring the non-China video, it would produce a failed request for users in China since it was loaded on page load before being changed to the China video
  • when the ipinfo call produces and error, no cookie value is now set so that the call can be tried again during a subsequent page load


  • First release