Extension to Ultimate Member for User Roles Expiration based on an updated version of the Expire Users plugin.
Support for:
- Time period until a User Role expires in number of Days, Weeks, Months or Years after introduction
- Hosting User Role for expired Users
- User Role selections to be included each with own settings
- UM Registration forms option
- UM Login form option for existing or first User logins or renewal with each login.
- UM Email templates
- UM Email and new placeholders
- User Account page status display and settings
- UM Dashboard User status info
- WP All Users filter and listings of User Role statuses
- Shortcodes
- Plugin activation to enable the Plugin settings and UM Role settings
- Expiry Date - Select your time period in number of Days, Weeks, Months or Years
- On Expire, Default to Role - Select your User Role for hosting of expired User Roles
Roles with Admin capabilities ( manage_options, update_core, administrator ) are excluded incl the "On Expire, Default to Role" set by the "Expire Users" plugin
- Include this Role in Expire User Roles? - Activate the "Expire User Roles" plugin for this User Role.
- Include Users during Registration? - New Users registered are included. Avoid this option, use the Login option instead, if you have email address confirmation or Admin approval for new Users. No email is sent, include info in your welcome email.
- Include an existing User at their next/first login? - Existing Users with this Role and without a free period are included at their next/first login and an email login notification is sent if enabled.
- Update the Expiration date at each User login? - A new Free User Role Expiration period is started at each User login. No User email login notification is sent for this option.
- Send an User Reminder email before Expiration day? - If selected Users may also enable/disable this option at their Account page tab for User Role Expiration.
- User Reminder email number of days in advance? - Select the number of days between 1 and 14.
- Optional Admin email address? - If empty the default UM admin email address will be used.
New template HTML sources are copied by the plugin to your active theme's local UM email templates folder.
- Expire Users - User Welcome = If template is active email is sent to user when included in User Role Expiration during login or backend renewal.
- Expire Users - User Reminder = If template is active an email is sent to the user as a Reminder of the upcoming User Role Expiration.
- Expire Users - User Role Expired = If template is active an email is sent to the User when the User Role is expired.
- Expire Users - Admin about User Role Expired = If template is active an email is sent to the Site Admin about an User Role being expired.
- Expire Users - Admin about User Role Renewal = If template is active an email is sent to the Site Admin about a renewal by an Account with Expired User Role or via WP All Users backend renewal.
UM email placeholders are valid.
These placeholders are only valid for the 5 email templates used by this plugin.
- {expiration-date} - User Role Expiration date and time
- {expiration-url} - URL to the Account page tab for status and update of User Role Epiration date
- {expiration-link} - Link to the Account page Expiration tab with the page button text: "Renew User Role %s" or "Update User Role"
- {expiration-reminder} - Reminder email sending date and time
- {expiration-reminder-days} - Number of days the Reminder email is sent in advance of User Role Expiration
- {expiration-role} - Expiration User Role name
- Active User's Account page
- Expired User's Account page
Information at UM Dashboard
- Next WP Cronjob scheduled at %s
- All User Expiration Roles
- %s Users are not expired - %s Users are not expired incl %d Users are pending to be expired
- %s Users are expired
- No Users are pending - %d Users are pending to be expired by the next WP Cronjob or WP All Users list
- %s Users may expire during next 24 hours
- %s Users may expire during next 7 days
- %s Reminder emails will be sent during the next 24 hours
- "Expire Date" column sortable ascending/descending with expired times in red color
- User dropdown per User not expired with action "Expire Now"
- User dropdown per User with action "Renew Now" for active, expired and inactive Users
- Filter "UM Expire User Roles" for listing of "Users not expired" and "Users expired"
Displays the expiry date for the current user.
[expire_users_current_user_expire_date]used at the first line of the User Account page
Allowed Attributes:
- date_format
- expires_format
- expired_format
- never_expire
Displays the expiry time remaining for the current user.
[expire_users_current_user_expire_countdown]used at the second line of the User Account page
Allowed Attributes:
- expires_format
- expired_format
- expired
- never_expire
- Source file
.../plugins/expire-users-um-master/includes/shortcodes.php - A combination of both shortcodes is used for the first line of the User Account page.
- The "Expire Users" cronjob is searching database for Expired Users and Users to send Reminders to either hourly for Days and Weeks time periods or twice daily for Months and Years time periods
- Available translations are local language files ( FR, NL, IT, BR ) for the original "Expire Users" plugin which are downloaded and installed with the plugin
- WP Translations
- Plugin text domain - expire-users - for the "Loco Translate" plugin or the "Say What?" plugin
_expire_user_dateTimestamp for time to expire or when expired_expire_user_expiredvalues Y or N ie expired or not expired_expire_user_settingsCurrent settings array for this User_expire_users_roleMain Role ID ie returning User Role at renewalexpire_users_reminderThe User setting at the Account page for a Reminder email yes/no_expire_users_reminderTimestamp for sending a Reminder email. Empty/removed after Reminder email sent.
None
- Original Expire Users plugin version 1.2.2
- Email Parse Shortcode for different email content per User Role
- Additional email Recipients for CC: and BCC: email addresses
- Index WP MySQL For Speed
- Download and install the "Expire User Roles" plugin ZIP file via the green "Code" button at this site
- Install as new Plugin, upload the "Expire User Roles" ZIP file in WordPress -> Plugins -> Add New -> Upload Plugin.
- Activate the "Expire User Roles" Plugin
- Same as 5.1 First install