Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created October 7, 2020 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/0f0ff7a63942e323978760d64489bd07 to your computer and use it in GitHub Desktop.
Save plugin-republic/0f0ff7a63942e323978760d64489bd07 to your computer and use it in GitHub Desktop.
Set a fixed expiry date
<?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