gform_user_registration_pending_activation_expiration

Description

Allows the expiration period for pending activations to be overridden.

Note that expiration doesn’t invalidate or delete the pending activation, expiration time only means the data submitted (username and email address) is no longer reserved for the user who submitted the form initially.

Usage

add_filter( 'gform_user_registration_pending_activation_expiration', 'your_function_name' );

Parameters

  • $expiration_time int

    Expiration time in seconds. Defaults to 172800 (2 days).

Examples

add_filter( 'gform_user_registration_pending_activation_expiration', function ( $expiration ) {
	// Extend expiration time to 7 days.
	return ( 7 * DAY_IN_SECONDS );
} );

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in User Registration version 4.5

Source Code

This filter is located in gravityformsuserregistration/class-gf-user-registration.php.