Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/26/2025 08:41:12 PM (7 months ago)
Author:
johnjamesjacoby
Message:

API - Blocks: Introduce support for Gutenberg blocks.

This commit includes:

  • bbp_register_blocks sub-action
  • common/blocks.php to register all of the blocks via PHP
  • common/blocks directory that includes a subdirectory for each block.json file
  • admin/assets/js/blocks.js to add block previews & preliminary support for some controls
  • admin/assets/css/blocks.css to help block previews look modern & clean

Fixes #3403.

In trunk, for 2.7.

Props georgestephanis, adamsilverstein, SirLouen, johnjamesjacoby.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/sub-actions.php

    r7380 r7383  
    213213
    214214/**
     215 * Register the default bbPress blocks.
     216 *
     217 * @since 2.7.0 bbPress (r7382)
     218 */
     219function bbp_register_blocks() {
     220        do_action( 'bbp_register_blocks' );
     221}
     222
     223/**
    215224 * Register the default bbPress meta-data.
    216225 *
     
    258267
    259268/**
    260  * Add the bbPress-specific login forum action
     269 * Add the bbPress-specific login forum action.
    261270 *
    262271 * @since 2.0.0 bbPress (r2753)
Note: See TracChangeset for help on using the changeset viewer.