wppaste
WordPress

apply_filters( 'user_request_key_expiration', int $expiration )

Since
4.9.6
Filters the expiration time of confirm keys.

Parameters

$expirationint
The expiration time in seconds.

Fired at · 2

  • wp-admin/includes/privacy-tools.php:197_wp_personal_data_cleanup_requests()
  • wp-includes/user.php:5093wp_validate_user_request_key()

Source

	 * Filters the expiration time of confirm keys.	 *	 * @since 4.9.6	 *	 * @param int $expiration The expiration time in seconds.	 */	$expiration_duration = (int) apply_filters( 'user_request_key_expiration', DAY_IN_SECONDS );	$expiration_time     = $key_request_time + $expiration_duration; 	if ( ! wp_verify_fast_hash( $key, $saved_key ) ) {		return new WP_Error( 'invalid_key', __( 'The confirmation key is invalid for this personal data request.' ) );	}

History

Introduced in 4.9.6. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.