jetpack_subscriptions_newsletter_feature_enabled

jetpack_subscriptions_newsletter_feature_enabled

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.12.3

apply_filters('jetpack_subscriptions_newsletter_feature_enabled') is found 3 times:

  • /class.jetpack-gutenberg.php line 702
    					 * @since 11.8
    					 *
    					 * @param bool false Enable the Paid Newsletters feature in the block editor context.
    					 */
    					apply_filters( 'jetpack_subscriptions_newsletter_feature_enabled', true )
    					&& class_exists( '\Jetpack_Memberships' )
    				),
    				/**
    				 * Enable the RePublicize UI in the block editor context.
    				 *
    				 * @module publicize
    
  • /extensions/blocks/subscriptions/subscriptions.php line 77
    	 * or if the 'Jetpack_Memberships' class does not exists.
    	 */
    	if (
    		/** This filter is documented in class.jetpack-gutenberg.php */
    		! apply_filters( 'jetpack_subscriptions_newsletter_feature_enabled', true )
    		|| ! class_exists( '\Jetpack_Memberships' )
    	) {
    		return;
    	}
    
    	register_post_meta(
    
  • /extensions/blocks/subscriptions/subscriptions.php line 431
    	}
    
    	if (
    		/** This filter is documented in class.jetpack-gutenberg.php */
    		apply_filters( 'jetpack_subscriptions_newsletter_feature_enabled', true )
    		&& class_exists( '\Jetpack_Memberships' )
    	) {
    		// We only want the sites that have newsletter feature enabled to be graced by this JavaScript and thickbox.
    		Jetpack_Gutenberg::load_assets_as_required( FEATURE_NAME, array( 'thickbox' ) );
    		if ( ! wp_style_is( 'enqueued' ) ) {
    			wp_enqueue_style( 'thickbox' );