blob: fb9b53d92fa5827381953f9c822c125566fdfc18 (
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
28
|
<?php
/**
* Social Previews Block.
*
* @since 8.x
*
* @package automattic/jetpack
*/
namespace Automattic\Jetpack\Extensions\Social_Previews;
use Automattic\Jetpack\Blocks;
const FEATURE_NAME = 'social-previews';
const BLOCK_NAME = 'jetpack/' . FEATURE_NAME;
/**
* Registers the Social Previews feature with the block editor.
*/
function register_block() {
Blocks::jetpack_register_block(
BLOCK_NAME,
array(
'plan_check' => true,
)
);
}
add_action( 'init', __NAMESPACE__ . '\register_block' );
|