# Paid Memberships Pro: Extra Links on the Account Page

> Adds your own links, such as "Member resources" or "Book a call", to the Member Links box on the Paid Memberships Pro account page.

- Type: PHP
- Runs: Run everywhere
- Category: [Memberships](https://wpide.com/library/category/memberships/)
- Tags: pmpro, account, links
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/pmpro-account-page-links/

## Code

```php
if ( ! function_exists( 'pmpro_hasMembershipLevel' ) ) {
    return;
}

// Label => array( URL, level ID or 0 for all members ).
$wpide_pmpro_member_links = array(
    'Member resources' => array( home_url( '/resources/' ), 0 ),
    'Book a coaching call' => array( home_url( '/coaching/' ), 2 ),
);

add_action( 'pmpro_member_links_top', function () use ( $wpide_pmpro_member_links ) {
    foreach ( $wpide_pmpro_member_links as $label => $link ) {
        list( $url, $level ) = $link;

        if ( $level && ! pmpro_hasMembershipLevel( $level ) ) {
            continue;
        }

        printf( '<li><a href="%1$s">%2$s</a></li>', esc_url( $url ), esc_html( $label ) );
    }
} );
```

## Notes

Add a level ID to a link to show it only to that level, or 0 for every member.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Paid Memberships Pro: Extra Links on the Account Page" 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/
