user_request_key_expiration

user_request_key_expiration

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('user_request_key_expiration') is found 2 times:

  • /wp-admin/includes/privacy-tools.php line 197
     * @access private
     */
    function _wp_personal_data_cleanup_requests() {
    	/** This filter is documented in wp-includes/user.php */
    	$expires = (int) apply_filters( 'user_request_key_expiration', DAY_IN_SECONDS );
    
    	$requests_query = new WP_Query(
    		array(
    			'post_type'      => 'user_request',
    			'posts_per_page' => -1,
    			'post_status'    => 'request-pending',
    
  • /wp-includes/user.php line 4951
    	 * @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_hasher->CheckPassword( $key, $saved_key ) ) {
    		return new WP_Error( 'invalid_key', __( 'The confirmation key is invalid for this personal data request.' ) );
    	}