init
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Plan checks for uploading video files to premium-content/container.
|
||||
*
|
||||
* @package automattic/jetpack
|
||||
**/
|
||||
|
||||
// Populate the available extensions with premium-content/container.
|
||||
add_filter(
|
||||
'jetpack_set_available_extensions',
|
||||
function ( $extensions ) {
|
||||
return array_merge(
|
||||
$extensions,
|
||||
array(
|
||||
'premium-content/container',
|
||||
)
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
// Set the premium-content/container block availability, depending on the site plan.
|
||||
add_action(
|
||||
'jetpack_register_gutenberg_extensions',
|
||||
function () {
|
||||
\Jetpack_Gutenberg::set_availability_for_plan( 'premium-content/container' );
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user