@miaria00,
Thanks for writing to us.
We have got few request regarding changing temporary login for more than one day on reactivation. We have already put it into our roadmap and will be incorporated in one of the future release of this plugin.
Meanwhile, modify the code as described below.
To change the reactivation from one day to one month, you need to make changes into /temporay-login-without-password/includes/class-wp-temporary-login-without-password-common.php file.
In the class-wp-temporary-login-without-password-common.php file, you will find following code.
if ( $action == 'disable' ) {
$manage_login = update_user_meta( $user_id, '_wtlwp_expire', self::get_current_gmt_timestamp() );
} elseif ( $action == 'enable' ) {
$manage_login = update_user_meta( $user_id, '_wtlwp_expire', self::get_user_expire_time() );
}
In the above code replace
$manage_login = update_user_meta( $user_id, '_wtlwp_expire', self::get_user_expire_time() );
with
$manage_login = update_user_meta( $user_id, '_wtlwp_expire', self::get_user_expire_time( 'month' ) );
It will reactivate temporary login for one month.
To change the label from ‘Reactivate for one day‘ to ‘Reactivate for one month‘, make following changes into /temporay-login-without-password/includes/class-wp-temporary-login-without-password-layout.php.
You will find following code
$action_row .= '<span class="enable"><a title="' . __( 'Reactivate for one day', 'temporary-login-without-password' ) . '" href="' . $enable_login_url . '"><span class="dashicons dashicons-lock"></a></span></span>';
replace with
$action_row .= '<span class="enable"><a title="' . __( 'Reactivate for one month', 'temporary-login-without-password' ) . '" href="' . $enable_login_url . '"><span class="dashicons dashicons-lock"></a></span></span>';
Hope that helps.
BTW, if you like this plugin, please consider giving us 5 star ratings here.
-
This reply was modified 6 years, 10 months ago by Malay Ladu.
-
This reply was modified 6 years, 10 months ago by Malay Ladu.