# Paid Memberships Pro: Add a Note to Level Prices

> Appends a short note such as "plus VAT" or "cancel any time" to the price text Paid Memberships Pro shows for each level.

- Type: PHP
- Runs: Run everywhere
- Category: [Memberships](https://wpide.com/library/category/memberships/)
- Tags: pmpro, pricing, levels
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/pmpro-level-cost-text-suffix/

## Code

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

// Level ID => note. "default" covers all other levels.
$wpide_pmpro_price_notes = array(
    'default' => 'Cancel any time.',
);

add_filter( 'pmpro_level_cost_text', function ( $text, $level ) use ( $wpide_pmpro_price_notes ) {
    $id   = is_object( $level ) && isset( $level->id ) ? (int) $level->id : 0;
    $note = $wpide_pmpro_price_notes[ $id ] ?? ( $wpide_pmpro_price_notes['default'] ?? '' );

    return $note ? $text . ' <span class="wpide-pmpro-price-note">' . esc_html( $note ) . '</span>' : $text;
}, 10, 2 );
```

## Notes

Leave a level out of $wpide_pmpro_price_notes to keep its text as it is; "default" applies to all other levels.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Paid Memberships Pro: Add a Note to Level Prices" 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/
