Filter the list of block editor extensions that are available through Jetpack.
Parameters
- argument
array
Changelog
- Introduced in Jetpack 7.0.0
How to use this hook
Notes
You can use this filter to selectively disable some of the Jetpack blocks. In the example below, we’ll remove the Donations block:add_filter( 'jetpack_set_available_extensions', function ( $extensions ) { return array_diff( $extensions, array( 'donations', ) ); }, 99 );