# MemberPress: Send Existing Members From Sign-Up Pages to Their Account

> Redirects logged-in members who already own a membership away from that membership's sign-up page to their account page, avoiding accidental double purchases.

- Type: PHP
- Runs: Frontend cl
- Category: [Memberships](https://wpide.com/library/category/memberships/)
- Requires: MemberPress
- Tags: memberpress, redirect, account
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/memberpress-members-skip-signup-page/

## Code

```php
if ( ! class_exists( 'MeprUser' ) || ! class_exists( 'MeprProduct' ) ) {
    return;
}

$wpide_mepr_account_url = home_url( '/account/' );

add_action( 'template_redirect', function () use ( $wpide_mepr_account_url ) {
    if ( ! is_user_logged_in() || ! is_singular( MeprProduct::$cpt ) ) {
        return;
    }

    $member = new MeprUser( get_current_user_id() );

    if ( $member->is_already_subscribed_to( get_queried_object_id() ) ) {
        wp_safe_redirect( $wpide_mepr_account_url );
        exit;
    }
} );
```

## Notes

Members can still buy other memberships; only the one they already have redirects.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "MemberPress: Send Existing Members From Sign-Up Pages to Their Account" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
