blob: 524a5a3e8a22ddf8ce99953ddfd212126ce917c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
/**
* Plan checks for uploading video files to core/video.
*
* @package automattic/jetpack
**/
// Populate the available extensions with core/video.
add_filter(
'jetpack_set_available_extensions',
function ( $extensions ) {
return array_merge(
$extensions,
array(
'core/video',
)
);
}
);
// Set the core/video block availability, depending on the site plan.
add_action(
'jetpack_register_gutenberg_extensions',
function () {
\Jetpack_Gutenberg::set_availability_for_plan( 'core/video' );
}
);
|