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
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
         * @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
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    * 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
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    }
     
    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' );