WC_Shortcode_My_Account::discard_password_reset_bridge_token
Delete a bridge handle without exchanging it, so it cannot be replayed.
Method of the class: WC_Shortcode_My_Account{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Shortcode_My_Account::discard_password_reset_bridge_token( $handle ): void;
- $handle(mixed) (required)
- URL bridge handle.
WC_Shortcode_My_Account::discard_password_reset_bridge_token() WC Shortcode My Account::discard password reset bridge token code WC 11.2.1
private static function discard_password_reset_bridge_token( $handle ): void {
if ( self::is_password_reset_bridge_handle( $handle ) ) {
delete_transient( self::get_password_reset_bridge_transient_name( $handle ) );
}
}