Content Blocks Builder 2.8.15 has 8 actions and 29 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Content Blocks Builder fires an action
add_action( 'cbb/init', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Content Blocks Builder is about to use
add_filter( 'boldblocks_post_revision_meta_keys', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filter the list of post meta keys to be revisioned. */ apply_filters( 'boldblocks_post_revision_meta_keys', [] ); -
/** * Fires after the new Copy action has been added to the row actions. Allows * changes to the action presentation, or other final checks. */ apply_filters( 'cbb_copy_item_row_actions', $updated_actions, $actions, $post ); -
/** * Fires when determining if the "Copy" row action should be made available. * Allows overriding supported post types. */ apply_filters( 'cbb_copy_item_supported_post_types', $public_types ); -
/** * Fires when determining if the "Copy" row action should be made available. * Allows overriding supported post types. */ apply_filters( 'cbb_copy_item_validate_post_types', $this->get_supported_post_types(), $post ); -
/** * Fires when CBB is initialized. Run before components are running. */ do_action( 'cbb/init' ); -
/** * Filters the number of custom fields to retrieve for the drop-down in the * Custom Fields meta box. */ apply_filters( 'postmeta_form_limit', 30 ); -
/** * Filter revisioned meta fields used for the revisions UI. */ apply_filters( "revisioned_meta_ui_field_{$meta_key}", $new_field, $compare_from, $compare_to ); -
apply_filters( 'cbb_get_max_items', $this->max_items, $this->post_type ); -
apply_filters( 'boldblocks_load_patterns', true ); -
do_action( 'boldblocks_variation_created', $response->data ); -
do_action( 'boldblocks/init' ); -
apply_filters( 'cbb_block_overrides_get_all_supported_blocks', array_merge( $this->supported_core_blocks, $this->get_supported_blocks() ) ); -
apply_filters( 'cbb_block_overrides_supported_blocks', $this->supported_blocks ); -
apply_filters( 'cbb_block_query_args', [ 'post_type' => $this->post_type, 'posts_per_page' => $this->get_max_items(), 'orderby' => [ 'menu_order' => 'DESC', 'date' => 'DESC', ], ] ); -
apply_filters( 'cbb_carousel_preloader', '<div class="cbb-loader"></div>', $block, $block_instance ); -
apply_filters( 'cbb_display_block_version', $this->the_plugin_instance->is_debug_mode() ); -
do_action( 'cbb_fs_loaded' ); -
apply_filters( 'cbb_get_allowed_svg_tags', $allowed_svg ); -
apply_filters( 'cbb_get_animated_blocks', [ 'core/heading', 'core/paragraph', 'core/image', 'core/button', 'core/buttons', 'core/list-item', 'core/list', 'core/group', 'core/columns', 'core/column', 'core/cover', 'core/media-text', 'core/post-title', 'core/post-excerpt', 'core/post-terms', 'core/readmore', 'boldblocks/svg-block', ] ); -
apply_filters( 'cbb_get_binding_attribute_properties', $properties, $attribute_name, $block_instance, $computed_attributes ); -
apply_filters( 'cbb_get_block_layout', $block_instance->block_type->supports['layoutType'] ?? '', $block ); -
apply_filters( 'cbb_get_block_style', $style, [ 'settings' => $settings, 'selector' => $class_selector, 'breakpoints' => $breakpoints, 'block' => $block, 'block_layout' => $block_layout, ] ); -
apply_filters( 'cbb_get_carousel_settings', $dataset, $parsed_block, $block_instance ); -
apply_filters( 'cbb_get_header_left_links', $left_links ); -
apply_filters( 'cbb_get_loop_temlate_blocks', [ 'core/post-template' ] ); -
apply_filters( 'cbb_has_pattern_inserter', true ); -
do_action( 'cbb_plugin_setup', $this->the_plugin_instance ); -
apply_filters( 'cbb_pre_render_dynamic_content', null, $block_content, $computed_attributes, $block_instance ); -
apply_filters( 'cbb_query_loop_block_query_vars', array_merge( $query_args, $cbb_args ), $query_args, $cbb_params, $query_context, $queried_object ); -
apply_filters( 'cbb_support_block_style', isset( $block_instance->block_type->supports['cbb'] ), $block, $block_instance ); -
apply_filters( 'cbb_theme_json_data_default_settings', $default_settings ); -
apply_filters( 'cbb_user_can_edit_css', current_user_can( 'manage_options' ) ); -
do_action( 'cbb/activate' ); -
do_action( 'cbb/register_components', $this ); -
do_action( 'cbb/version_upgraded', get_option( 'cbb_current_version' ), $this->version ); -
apply_filters( 'revision_text_diff_options', $args, end( $fields ), $compare_from, $compare_to ); -
apply_filters( 'the_content', $raw_block_content );
Generated from Content Blocks Builder's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: