Home / Admin / Modify User Verification URL Expiration
Duplicate Snippet

Embed Snippet on Your Site

Modify User Verification URL Expiration

Changes the length of time before user verification email links expire

Code Preview
php
<?php
function kjm_modify_user_verification_url_expiration( $url ) {
	// EDD default is '+24 hours'. 'days' also works
	$url   = add_query_arg( 'ttl', strtotime( '+48 hours' ), $url );
	return $url;
}
add_filter( 'edd_get_user_verification_url', 'kjm_modify_user_verification_url_expiration' );

Comments

Add a Comment