filter

jetpack_set_available_extensions

Filter the list of block editor extensions that are available through Jetpack.

Parameters

argument
array

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

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
);