Created
October 7, 2020 07:08
-
-
Save plugin-republic/0f0ff7a63942e323978760d64489bd07 to your computer and use it in GitHub Desktop.
Set a fixed expiry date
This file contains 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 | |
/** | |
* Set fixed expiry date | |
*/ | |
function prefix_role_expiration_date( $expires, $role, $user_id ) { | |
$expires = '25 October 2020'; | |
return strtotime( $expires ); | |
} | |
add_filter( 'wcmo_role_expiration_date', 'prefix_role_expiration_date', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment