ClassesBigCommerceAccountsPassword Reset

Password_Reset

Class Password_Reset

Responsible for handling customer password reset and synchronization with BigCommerce.

  • Full name: \BigCommerce\Accounts\Password_Reset

Methods

__construct

Password_Reset constructor.

public __construct(\BigCommerce\Api\Customer_Api $customer_api): mixed

Parameters:

ParameterTypeDescription
$customer_api\BigCommerce\Api\Customer_ApiThe Customer_Api instance for interacting with BigCommerce’s API.

sync_reset_password_with_bigcommerce

Syncs the password reset with BigCommerce when a user submits the reset password form on the front end.

public sync_reset_password_with_bigcommerce(\WP_User $user, string $new_pass): void

Parameters:

ParameterTypeDescription
$user\WP_UserThe WordPress user object.
$new_passstringThe new user password.

sync_password_change_with_bigcommerce

Syncs the password change with BigCommerce when a user’s password is updated from the admin.

public sync_password_change_with_bigcommerce(int $user_id, \WP_User $old_user_data): void

Parameters:

ParameterTypeDescription
$user_idintThe user ID.
$old_user_data\WP_UserThe WP_User object containing user’s data prior to update.


Automatically generated on 2025-01-21