Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 20
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Block Editor - QR Post feature.
4 *
5 * @package automattic/jetpack
6 */
7
8if ( ! defined( 'ABSPATH' ) ) {
9    exit( 0 );
10}
11
12// Feature name.
13const FEATURE_NAME = 'post-publish-qr-post-panel';
14
15// Populate the available extensions with post-publish-qr-post-panel.
16add_filter(
17    'jetpack_set_available_extensions',
18    function ( $extensions ) {
19        return array_merge(
20            (array) $extensions,
21            array(
22                FEATURE_NAME,
23            )
24        );
25    }
26);
27
28// Set the post-publish-qr-post-panel availability, depending on the site plan.
29add_action(
30    'jetpack_register_gutenberg_extensions',
31    function () {
32        \Jetpack_Gutenberg::set_extension_available( FEATURE_NAME );
33    }
34);