Skip to content
Docs
Get RestroPress

Filter

rpress_verification_link_expired_text

Updated
On this page

Filters the error message shown for an expired verification link.

Runs in rpress_validate_user_verification_token() when the link has expired, just before wp_die() with a 403 response. The default text contains an HTML anchor that points to the verification request URL.

Parameters#

ParameterTypeDescription
$link_textstringThe expired-link message.

Return value#

string. The message passed to wp_die().

Example#

function my_expired_link_text( $link_text ) {
	return __( 'This verification link has expired. Please request a new one from your account page.', 'my-textdomain' );
}
add_filter( 'rpress_verification_link_expired_text', 'my_expired_link_text' );

Notes#

The value is passed through esc_html() before wp_die(), so HTML in the message, including the default link, is shown as escaped text.

Source#

Applied in:

  • includes/user-functions.php (line 775), in rpress_validate_user_verification_token()

See also#

Was this page helpful?