jetpack_wp_admin_subscriber_management_enabled

jetpack_wp_admin_subscriber_management_enabled

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.15.5

apply_filters('jetpack_wp_admin_subscriber_management_enabled') is found 4 times:

  • /_inc/lib/admin-pages/class-jetpack-redux-state-helper.php line 249
    			'isSubscriptionSiteEnabled'            => apply_filters( 'jetpack_subscription_site_enabled', false ),
    			'newsletterDateExample'                => gmdate( get_option( 'date_format' ), time() ),
    			'subscriptionSiteEditSupported'        => $current_theme->is_block_theme(),
    			/* This filter is already documented in jetpack/modules/subscriptions.php */
    			'isWpAdminSubscriberManagementEnabled' => apply_filters( 'jetpack_wp_admin_subscriber_management_enabled', false ),
    		);
    	}
    
    	/**
    	 * Gets array of any Jetpack notices that have been dismissed.
    	 *
    
  • /jetpack_vendor/automattic/jetpack-newsletter/src/class-settings.php line 212
    		$is_wpcom               = $host->is_wpcom_platform();
    		$is_wpcom_simple        = $host->is_wpcom_simple();
    		$setup_payment_plan_url = ( $is_wpcom_simple ? 'https://wordpress.com/earn/payments/' : 'https://cloud.jetpack.com/monetize/payments/' ) . rawurlencode( $site_raw_url );
    
    		$wp_admin_subscriber_management_enabled = apply_filters( 'jetpack_wp_admin_subscriber_management_enabled', false );
    
    		return array(
    			'isBlockTheme'                    => wp_is_block_theme(),
    			'siteAdminUrl'                    => admin_url(),
    			'themeStylesheet'                 => $theme->get_stylesheet(),
    			'blogID'                          => $blog_id,
    
  • /jetpack_vendor/automattic/jetpack-subscribers-dashboard/src/class-dashboard.php line 67
    	/**
    	 * The page to be added to submenu
    	 */
    	public function add_wp_admin_submenu() {
    		if ( ! apply_filters( 'jetpack_wp_admin_subscriber_management_enabled', false ) || self::$menu_added ) {
    			return;
    		}
    
    		$page_suffix = null;
    		if ( ( new Host() )->is_wpcom_platform() ) {
    			$page_suffix = add_submenu_page( 'users.php', __( 'Subscribers', 'jetpack-subscribers-dashboard' ), __( 'Subscribers', 'jetpack-subscribers-dashboard' ), 'manage_options', 'subscribers', array( $this, 'render' ) );
    
  • /modules/subscriptions.php line 1023
    		 * @since 9.5.0
    		 *
    		 * @param bool If the new dashboard is enabled. Default false.
    		 */
    		if ( apply_filters( 'jetpack_wp_admin_subscriber_management_enabled', false ) ) {
    			return;
    		}
    
    		/*
    		 * Do not display any menu on WoA and WordPress.com Simple sites (unless Classic wp-admin is enabled).
    		 * They already get a menu item under Users via nav-unification.