summaryrefslogtreecommitdiff
blob: d8488cf22b893b9644575fc26a7f38d76261e177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php // phpcs:disable Squiz.Commenting.FileComment.Missing
/**
 * Memberships block.
 *
 * @since 7.3.0
 *
 * @package Jetpack
 */

if ( ( defined( 'IS_WPCOM' ) && IS_WPCOM ) || Jetpack::is_active() ) {
	require_once JETPACK__PLUGIN_DIR . '/modules/memberships/class-jetpack-memberships.php';

	jetpack_register_block(
		'jetpack/membership-button',
		array(
			'render_callback' => array( Jetpack_Memberships::get_instance(), 'render_button' ),
		)
	);
}