Current Path : /storage/v11800/wthtest1/public_html/wp-content/plugins/jetpack/extensions/extended-blocks/core-video/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/wthtest1/public_html/wp-content/plugins/jetpack/extensions/extended-blocks/core-video/core-video.php |
<?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' );
}
);