WP Manifestindependent plugin directory
manifest / events / tec-labs-ce-convert-content-to-blocks

The Events Calendar: Community Events Extension: Convert Submitted Content to Blocks WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

The extension will convert the event content submitted through Community Events to block editor format.

★ 2stars
24release downloads
≈10active sites
2.6.1-devlatest · 2 years ago

Install

Download tec-labs-ce-convert-content-to-blocks-2.6.1.zip From the 2.6.1-dev release on GitHub, Mar 18, 2024

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/mt-support/tec-labs-ce-convert-content-to-blocks/releases/download/2.6.1-dev/tec-labs-ce-convert-content-to-blocks-2.6.1.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Community Events Extension: Convert Submitted Content to Blocks

This extension aims to convert the event content submitted through Community Events to block editor format.

Note, this extension is still under development and NO ACTIVE SUPPORT is provided for it. If you would like to report a bug or a request, you can do it in the Issues section in the GitHub repository.

Setting it up

Setting up the extension is simple, just install it and activate it on your WordPress site, alongside The Events Calendar and Community Events.

There are no settings for the extension at the moment.

Requirements

The following two settings are required to be enabled for the extension to work.

  • Events > Settings > General > Activate Block Editor for Events
  • Events > Settings > Community > Use visual editor for event descriptions

If these settings are not enabled, the extension will not function.

Filters

The plugin has two filters

tec_labs_ce_block_template

Allows changing the HTM block markup, including adding and removing elements.

/**
 * Remove the comments block.
 */
function my_custom_ce_blocks( $blocks, $data ) {
    // Remove the comments block.
    unset( $blocks['comments'] );

    return $blocks;
}
add_filter( 'tec_labs_ce_block_template', 'my_custom_ce_blocks', 10, 2 );

tec_labs_ce_block_order

Allows rearranging the order of the blocks based on the block slug.

Note: content_start, content, and content_end should stay together.

You can omit content_start and content_end. The plugin will make an attempt to include them.

/**
 * Rearrange the event blocks.
 */
function my_custom_ce_block_order( $order ) {
    $order = [
        'featured_image',
        'organizer',
        'venue',
        'sharing',
        'related',
        'comments',
        'datetime',
        'content_start',
        'content',
        'content_end',
    ];

    return $order;
}
add_filter( 'tec_labs_ce_block_order', 'my_custom_ce_block_order' );

Important

The plugin will attempt the conversion for newly submitted events.
It will not work for events submitted in the past.

Future Plans

  • Add a setting for the cutoff date which is now hard-coded to be October 1, 2023.

Releases

3 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
2.6.1-dev latest
Mar 18, 2024 2 years ago
tec-labs-ce-convert-content-to-blocks-2.6.1.zip
7
Feb 27, 2024 2 years ago
tec-labs-ce-convert-content-to-blocks-2.6.0-dev.zip
8
Oct 5, 2023 3 years ago
tec-labs-ce-convert-content-to-blocks-2.5.1-dev.zip
9

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

A grade

Security

The Events Calendar: Community Events Extension: Convert Submitted Content to Blocks 2.6.1-dev · audited by WP Registry

No security issues found.

Audited release
2.6.1-dev
Findings
none
Worst severity
—
Content hash
f32307075393d537cbcc7d6e…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.