Filter
rpress_verification_link_expired_text
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#
| Parameter | Type | Description |
|---|---|---|
$link_text | string | The 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), inrpress_validate_user_verification_token()
See also#
Was this page helpful?
