Content Area Block

外掛說明

This block allows you to add an additional block content area to a site-editor template and store the block output inside a meta field. By default, the plugin will add a new meta field called extra_content_area for all post types which you can use to store the block markup.

If you want to disable this meta key’s registration, add the following to your theme or plugin:

<?php
add_filter( 'content_area_block_register_default_meta', '__return_false' );

Note: Using this plugin requires you to enable template previews (which will let you visually see the new content area you’re adding). This can be enabled on any given post or page, but you can optionally set it on by default using a filter.

Contributing

The plugin source code may be found here: https://github.com/iansvo/content-area-block.

To build the plugin from source, you must have NodeJS (v24+) installed.

Setup Steps:

  1. Navigate to the project folder in your terminal.
  2. Run npm i to install dependencies.
  3. Run npm run build to performn the initial build.

If you’re using wp-env to run the plugin…
1. Run npm run wp-env start to start the docker container.
2. Run npm run start to watch for file changes.

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Content Area Adds a block content area to a site editor template.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Content Area Block〉的開發相關工作。

參與者

將〈Content Area Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1.0

  • Release