diff --git src/bp-core/admin/bp-core-admin-functions.php src/bp-core/admin/bp-core-admin-functions.php
index 1b2642448..c177e11ad 100644
--- src/bp-core/admin/bp-core-admin-functions.php
+++ src/bp-core/admin/bp-core-admin-functions.php
@@ -1344,4 +1344,17 @@ function bp_block_category( $categories = array(), $post = null ) {
 		)
 	);
 }
-add_filter( 'block_categories', 'bp_block_category', 1, 2 );
+
+/**
+ * Select the right `block_categories` filter according to WP version.
+ *
+ * @since 8.0.0
+ */
+function bp_block_init_category_filter() {
+	if ( function_exists( 'get_default_block_categories' ) ) {
+		add_filter( 'block_categories_all', 'bp_block_category', 1, 2 );
+	} else {
+		add_filter( 'block_categories', 'bp_block_category', 1, 2 );
+	}
+}
+add_action( 'bp_init', 'bp_block_init_category_filter' );
diff --git src/bp-core/bp-core-blocks.php src/bp-core/bp-core-blocks.php
index 62e408060..d10309461 100644
--- src/bp-core/bp-core-blocks.php
+++ src/bp-core/bp-core-blocks.php
@@ -67,7 +67,20 @@ function bp_blocks_editor_settings( $editor_settings = array() ) {
 
 	return $editor_settings;
 }
-add_filter( 'block_editor_settings', 'bp_blocks_editor_settings' );
+
+/**
+ * Select the right `block_editor_settings` filter according to WP version.
+ *
+ * @since 8.0.0
+ */
+function bp_block_init_editor_settings_filter() {
+	if ( function_exists( 'get_block_editor_settings' ) ) {
+		add_filter( 'block_editor_settings_all', 'bp_blocks_editor_settings' );
+	} else {
+		add_filter( 'block_editor_settings', 'bp_blocks_editor_settings' );
+	}
+}
+add_action( 'bp_init', 'bp_block_init_editor_settings_filter' );
 
 /**
  * Register a BuddyPress block type.
