Nova Blocks by Pixelgrade 2.7.2 has 15 actions and 72 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 Nova Blocks by Pixelgrade fires an action
add_action( 'novablocks/announcement_bar:after', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Nova Blocks by Pixelgrade is about to use
add_filter( 'comments_array', function( $comments_flat, $query_args ) {
// Change $comments_flat here.
return $comments_flat;
}, 10, 2 );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
-
/** * Filters the comments array. */ apply_filters( 'comments_array', $comments_flat, $query_args['post_id'] ); -
/** * Apply the same filter as the core */ apply_filters( 'comments_number', $comments_number_text, $comments_count ); -
/** * Filters the arguments used to query comments in @param array $comment_args { * Array of WP_Comment_Query arguments. */ apply_filters( 'comments_template_query_args', $comment_args ); -
/** * Filters raw cloud block pattern items. */ apply_filters( 'novablocks/cloud_block_patterns_raw_items', $items ); -
/** * Filters the period of time the comment will be viewable to the comment * author. */ apply_filters( 'novablocks/comments/list_preview_time', $args['commentPreviewTime'], $comment ); -
/** * Filters the path fragments whose `enqueue_block_editor_assets` callbacks the * agent harness treats as verified-safe. WordPress core (`wp-includes`, * `wp-admin`) is always allowed. */ apply_filters( 'novablocks/agent_harness_editor_asset_allowlist', $allowed ); -
/** * Filters the directory holding the Pixelgrade agent-harness package. */ apply_filters( 'novablocks/agent_harness_path', $path ); -
/** * Filters the wall-clock budget for one agent-harness invocation. */ apply_filters( 'novablocks/agent_harness_timeout', $timeout, $payload_bytes ); -
/** * Filters the theme block patterns. */ apply_filters( 'novablocks/block_patterns', $block_patterns ); -
/** * Filters the NovaBlocks block patterns categories. */ apply_filters( 'novablocks/block_patterns_categories', $block_pattern_categories ); -
/** * Filters the site-wide card metadata presentation default. */ apply_filters( 'novablocks/card_metadata_style_default', 'plain', $attributes ); -
/** * Filters normalized cloud block patterns. */ apply_filters( 'novablocks/cloud_block_patterns', $block_patterns ); -
/** * Filters the cloud block pattern tiers Nova Blocks may request and register. */ apply_filters( 'novablocks/cloud_block_patterns_allowed_tiers', $tiers ); -
/** * Filters the cloud block patterns cache TTL. */ apply_filters( 'novablocks/cloud_block_patterns_cache_ttl', 6 * HOUR_IN_SECONDS ); -
/** * Filters normalized cloud block pattern categories. */ apply_filters( 'novablocks/cloud_block_patterns_categories', $block_pattern_categories ); -
/** * Filters the Pixelgrade Cloud block patterns endpoint URL. */ apply_filters( 'novablocks/cloud_block_patterns_endpoint_url', $url ); -
/** * Filters request data sent to Pixelgrade Cloud for block patterns. */ apply_filters( 'novablocks/cloud_block_patterns_request_data', $request_data ); -
/** * Filters the site data sent with cloud block-pattern requests. */ apply_filters( 'novablocks/cloud_block_patterns_site_data', $site_data ); -
/** * Filters the active theme data sent with cloud block-pattern requests. */ apply_filters( 'novablocks/cloud_block_patterns_theme_data', $theme_data ); -
/** * Filters cloud block pattern content after Nova Blocks replaces dynamic tags. */ apply_filters( 'novablocks/cloud_block_patterns/parse_content_tags:after', $content, $original_content ); -
/** * Filters cloud block pattern content before Nova Blocks replaces dynamic * tags. */ apply_filters( 'novablocks/cloud_block_patterns/parse_content_tags:before', $content ); -
/** * Filters the per-block core design-tools availability overrides that Nova * Blocks applies via `wp_theme_json_data_theme`. */ apply_filters( 'novablocks/core_tools_availability', $overrides ); -
/** * Filters dynamic core blocks augmented with Color Signal. */ apply_filters( 'novablocks/dynamic_core_color_signal_blocks', $blocks ); -
/** * Filters the list of third-party template-part patterns to unregister. */ apply_filters( 'novablocks/incompatible_template_part_patterns', $pattern_slugs ); -
/** * Filters the Node binary used by the agent harness. */ apply_filters( 'novablocks/node_binary', $binary ); -
/** * Allows opting out of the automatic content normalization (e.g. to run it * manually via WP-CLI instead). */ apply_filters( 'novablocks/normalize_legacy_unit_content', true ); -
/** * Filters the core design tools Nova enables on its own blocks. Return the map * without a block (or set a leaf to false) to withdraw a tool. */ apply_filters( 'novablocks/nova_block_tools_availability', [ 'novablocks/supernova' => $border, 'novablocks/supernova-item' => $border, ] ); -
/** * Filters the script dependencies list before registering a package block * editor script. */ apply_filters( 'novablocks/register_package_editor_script_dependencies', $dependencies, $package, $handle, $package_dir_url . 'index.js' ); -
/** * Filters the stylesheet dependencies list before registering a package editor * stylesheet. */ apply_filters( 'novablocks/register_package_editor_stylesheet_dependencies', $style_dependencies, $package, $handle . '-editor_style', $package_dir_url . 'editor-styles.css' ); -
/** * Filters the script dependencies list before registering a package frontend * script. */ apply_filters( 'novablocks/register_package_frontend_script_dependencies', $dependencies, $package, $handle . '/frontend', $package_dir_url . 'frontend.js' ); -
/** * Filters the stylesheet dependencies list before registering a package * frontend stylesheet. */ apply_filters( 'novablocks/register_package_frontend_stylesheet_dependencies', $style_dependencies, $package, $handle . '-style', $package_dir_url . 'style.css' ); -
/** * Filters whether Nova Blocks may fetch cloud block patterns in the current * request. */ apply_filters( 'novablocks/should_fetch_cloud_block_patterns', $should_fetch ); -
/** * Short-circuits the raw cloud block-pattern response. */ apply_filters( 'pre_novablocks_cloud_block_patterns_response', null, $request_data ); -
apply_filters( 'novablocks/after_parse_content_tags', $content, $original_content, $post_id, $user_id ); -
do_action( 'novablocks/announcement_bar:after' ); -
do_action( 'novablocks/announcement_bar:before' ); -
apply_filters( 'novablocks/before_parse_content_tags', $content, $post_id, $user_id ); -
apply_filters( 'novablocks/comments/add_post_type_metabox', ! in_array( $post_type, $this->excluded_post_types ), $post_type ); -
apply_filters( 'novablocks/comments/block_should_render', true, $block->context[ 'postId' ], $attributes, $block ); -
do_action( 'novablocks/comments/comment_extra_details_fields', $comment ); -
do_action( 'novablocks/comments/comment_extra_details_save_fields', $comment_id ); -
do_action( 'novablocks/comments/comment_extra_details_save_metadata', $comment_id ); -
apply_filters( 'novablocks/comments/comment_wrapper_classes', [ 'comment-wrapper' ], $comment, $depth, $args ); -
apply_filters( 'novablocks/comments/form_should_render', $should_render, $this->post, $args ); -
apply_filters( 'novablocks/comments/header_should_render', $should_render, $this->post, $args ); -
do_action( 'novablocks/comments/list_comment:end', $comment, $depth, $args ); -
apply_filters( 'novablocks/comments/list_query_args', $comment_args ); -
apply_filters( 'novablocks/comments/list_should_render', $should_render, $this->post, $args, $comments ); -
novablocks/comments/post_conversation_starter_dropdown_users_args
filter Copy link Customise this hookapply_filters( 'novablocks/comments/post_conversation_starter_dropdown_users_args', [ 'capability' => array( $post_type_object->cap->edit_posts ), 'name' => 'nb_conversation_starter_user_id', 'selected' => empty( $conversation_starter_user_ID ) ? $post->post_author : $conversation_starter_user_ID, 'include_selected' => true, 'show' => 'display_name_with_login', ], $post ); -
do_action( 'novablocks/comments/post_discussion_extra_details_fields', $post ); -
apply_filters( 'novablocks/comments/starter_should_render', $should_render, $this->post, $args ); -
apply_filters( 'novablocks/comments/the_form_button_classes', $button_classes, self::$fakeFormButtonInstances, $args ); -
apply_filters( 'novablocks/comments/the_form_button_data_attributes', $data_attributes, self::$fakeFormButtonInstances, $args ); -
apply_filters( 'novablocks/comments/wp_list_comments_args', [ 'walker' => new NovaBlocks_Walker_Comment(), 'max_depth' => $list_args['maxThreadDepth'], 'reverse_top_level' => $list_args['reverseTopLevelCommentsOrder'], 'avatar_size' => $list_args['avatarSize'], 'moderation_message' => $list_args['moderationMessage'], 'style' => 'div', 'short_ping' => true, 'page' => 0, 'per_page' => 0, 'cpage' => $page, 'display_commenter_background' => $list_args['disp... ); -
apply_filters( 'novablocks/cpt-metafields/list_markup', $metafields_list_output, $attributes, $content, $block ); -
do_action( 'novablocks/google_maps:after' ); -
do_action( 'novablocks/google_maps:before' ); -
do_action( 'novablocks/header:after' ); -
do_action( 'novablocks/header:before' ); -
apply_filters( 'novablocks/logo_markup', $logo_markup ); -
do_action( 'novablocks/logo:after' ); -
do_action( 'novablocks/logo:before' ); -
apply_filters( 'pixelgrade/has_entitlement', false, $key ); -
apply_filters( 'facetwp_facets', $facetwp_settings['facets'] ); -
apply_filters( 'novablocks_block_editor_settings', $settings ); -
apply_filters( 'novablocks_collection_layout_recipes', [] ); -
apply_filters( 'novablocks/block_editor_initial_settings', $settings ); -
apply_filters( 'novablocks/card_expression_thresholds', $defaults ); -
apply_filters( 'novablocks/collection_leading_items', [], $attributes, $block ); -
apply_filters( 'novablocks/collection_leading_items_markup', '', $attributes, $block ); -
apply_filters( 'novablocks/content_normalization_post_types', [ 'post', 'page', 'wp_template', 'wp_template_part', 'wp_block', ] ); -
apply_filters( 'novablocks/get_collection_card_markup', $card_markup, $post, $attributes ); -
apply_filters( 'novablocks/pixelgrade_plus_entitlement_bridge_is_available', $available ); -
apply_filters( 'novablocks/plus_gated_block_attributes', $gates ); -
apply_filters( 'novablocks/plus_upsell_url', 'https://pixelgrade.com/plus' ); -
apply_filters( 'novablocks/post_card_profile', [], $post, $attributes ); -
apply_filters( 'novablocks/post_card_render_data', $render_data, $post, $attributes, $profile ); -
apply_filters( 'novablocks/post_content_before_reading_time_calc', $content, $post ); -
apply_filters( 'novablocks/post_format_card_blueprints', [ 'quote' => 'card-quote', 'image' => 'card-image', ] ); -
apply_filters( 'novablocks/sidebars_blocks:pre_register', $sidebars, $wp_registered_sidebars ); -
apply_filters( 'pixelgrade/mcp/public_abilities', [] ); -
apply_filters( 'the_content', $caption );
Generated from Nova Blocks by Pixelgrade'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: