Last active
August 6, 2021 23:26
-
-
Save kimcoleman/0f9528f9871c733a43f44e998f61a49b to your computer and use it in GitHub Desktop.
Show the expiration time for a member's level on the Membership Account page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Show the expiration time for a member's level on the Membership Account page. | |
* Useful for sites that offer hourly membership. | |
* Requires PMPro v2.6+ | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* | |
*/ | |
add_filter( 'pmpro_show_time_on_expiration_date', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment