[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/ -> class-wp-recovery-mode-link-service.php (summary)

Error Protection API: WP_Recovery_Mode_Link_Handler class

File Size: 129 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 wp-includes/pluggable.php

Defines 1 class

WP_Recovery_Mode_Link_Service:: (4 methods):
  __construct()
  generate_url()
  handle_begin_link()
  get_recovery_mode_begin_url()


Class: WP_Recovery_Mode_Link_Service  - X-Ref

Core class used to generate and handle recovery mode links.

__construct( WP_Recovery_Mode_Cookie_Service $cookie_service, WP_Recovery_Mode_Key_Service $key_service )   X-Ref
WP_Recovery_Mode_Link_Service constructor.

param: WP_Recovery_Mode_Cookie_Service $cookie_service Service to handle setting the recovery mode cookie.
param: WP_Recovery_Mode_Key_Service    $key_service    Service to handle generating recovery mode keys.
since: 5.2.0

generate_url()   X-Ref
Generates a URL to begin recovery mode.

Only one recovery mode URL can may be valid at the same time.

return: string Generated URL.
since: 5.2.0

handle_begin_link( $ttl )   X-Ref
Enters recovery mode when the user hits wp-login.php with a valid recovery mode link.

param: int $ttl Number of seconds the link should be valid for.
since: 5.2.0

get_recovery_mode_begin_url( $token, $key )   X-Ref
Gets a URL to begin recovery mode.

return: string Recovery mode begin URL.
param: string $token Recovery Mode token created by {@see generate_recovery_mode_token()}.
param: string $key   Recovery Mode key created by {@see generate_and_store_recovery_mode_key()}.
since: 5.2.0



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1