# jetpack/16.3-a.7/extensions/extended-blocks/core-video/core-video.php

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.3-a.7. 32 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.3-a.7/code/extensions/extended-blocks/core-video/core-video.php
- Raw: https://pluginprobe.com/plugins/jetpack/16.3-a.7/raw/extensions/extended-blocks/core-video/core-video.php
- Modified: 2025-11-24T17:00:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetpack/16.3-a.7/code/extensions/extended-blocks/core-video/core-video.php#L10-L20`.

```php
<?php
/**
 * Plan checks for uploading video files to core/video.
 *
 * @package automattic/jetpack
 **/

if ( ! defined( 'ABSPATH' ) ) {
	exit( 0 );
}

// Populate the available extensions with core/video.
add_filter(
	'jetpack_set_available_extensions',
	function ( $extensions ) {
		return array_merge(
			(array) $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' );
	}
);

```
