For developers requiring advanced customization beyond the template and block settings, the Membership Card Add On offers several action and filter hooks.
Filters
| Hook | Description | Default Behavior |
|---|---|---|
| apply_filters( ‘pmpro_membership_card_since_date’, string $since_date ) | Filters the “Member Since” date displayed on the card. | Shows the user_registered date (the date the user registered for the site). |
| apply_filters( ‘pmpro_membership_card_qr_code_size’, string $size ) | Filters the dimensions of the generated QR code image. | 125×125 |
| apply_filters( ‘pmpro_membership_card_qr_data_other’, object $pmpro_membership_card_user, string $option ) | Allows a developer to set a custom value to be encoded in the QR code when qr_data is set to ‘other’ in the Block settings or Shortcode. | Returns no value unless a custom function is hooked in. |
| apply_filters( ‘pmpro_membership_card_left’, string $left_html, array $args ) | Allows customization of the HTML content for the left-hand section of the card. | Displays content based on the elements’ settings. |
| apply_filters( ‘pmpro_membership_card_right’, string $right_html, array $args ) | Allows customization of the HTML content for the right-hand section of the card. | Displays the user avatar and QR code (if enabled). |
| apply_filters( ‘pmpro_membership_card_get_display_value’, string $value, string $field_key, object $pmpro_membership_card_user, array $args ) | Filters the specific value returned for any display element (e.g., display_name, user_email). | Returns the raw data pulled from the database or calculated by the plugin. |
Actions
| Hook | Description | Notes |
|---|---|---|
| do_action( ‘pmpro_membership_card_after_card’ ) | Deprecated. Use the new filters or template customization instead. | This hook was used to show additional custom content immediately after the card HTML. |
For code snippets and examples on how to use these new filters for advanced customizations, please refer to our customization documentation.
Get Support From Our Team of Experts
For more help with this PMPro feature, check out our Support Page with three ways to get support as a free or premium member.
Last updated on February 5, 2026
Was this article helpful?
YesNo

