Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter to change expiration dates on the membership card #55

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

andrewlimaza
Copy link
Collaborator

  • ENHANCEMENT: Added filter 'pmpro_membership_card_member_end_date' to allow developers to adjust the output of the expiration date for the membership card. It takes the $date and $pmpro_membership_card_user respectively.

Note: This also improves the sanitization on the output to use escape functions.

All Submissions:

Changes proposed in this Pull Request:

Resolves 54.

How to test the changes in this Pull Request:

After pulling this code, you may use the gist below to display the date like June 10, 2025. (Please make sure that your default WordPress date is a different format or tweak the gist below further).

Code example

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully run tests with your changes locally?

Changelog entry

Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.

* ENHANCEMENT: Added filter 'pmpro_membership_card_member_end_date' to allow developers to adjust the output of the expiration date for the membership card. It takes the $date and $pmpro_membership_card_user respectively.
@kimcoleman
Copy link
Member

Now that it is in core, I wonder if we can use the function pmpro_get_membership_expiration_text in this Add On?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Add end date filter
2 participants