ClassesBigCommerceAccountsUser Profile Settings

User_Profile_Settings

Class User_Profile_Settings

Responsible for rendering and saving user profile settings, specifically for synchronizing passwords between WordPress and the BigCommerce API.

  • Full name: \BigCommerce\Accounts\User_Profile_Settings

Constants

ConstantVisibilityTypeValue
SYNC_PASSWORDpublic’bigcommerce_sync_password’
NONCE_ACTIONpublic’bc_user_profile’
NONCE_NAMEpublic’bc_nonce’

Methods

render_profile_settings

Render profile settings

public render_profile_settings(\WP_User $user): void

This action is triggered on the user profile page to display BigCommerce-specific settings, such as synchronizing passwords with the BigCommerce API.

Parameters:

ParameterTypeDescription
$user\WP_UserThe user object for which the settings are being rendered.

save_profile_settings

Handle save logic for profile settings

public save_profile_settings(int $user_id): void

This action is triggered when the user profile settings are saved, allowing for synchronization of passwords between WordPress and the BigCommerce API.

Parameters:

ParameterTypeDescription
$user_idintThe ID of the user whose settings are being saved.


Automatically generated on 2025-01-21