Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Actions and OnChanged events

Alex edited this page Mar 13, 2017 · 10 revisions

Account (WordPress.com)

Action OnChanged event Description
FETCH_ACCOUNT OnAccountChanged Request fetch of account information
FETCH_SETTINGS OnAccountChanged Request fetch of account settings
PUSH_SETTINGS OnAccountChanged Save changes to account settings to the server
CREATE_NEW_ACCOUNT OnNewUserCreated Create new account (can be used to validate the account before creation)
IS_AVAILABLE_BLOG OnAvailabilityChecked Check if a site is available to be registered on WordPress.com
IS_AVAILABLE_DOMAIN OnAvailabilityChecked Check if a domain is available to be registered on WordPress.com
IS_AVAILABLE_EMAIL OnAvailabilityChecked Check if an e-mail address is available to be registered on WordPress.com
IS_AVAILABLE_USERNAME OnAvailabilityChecked Check if a username is available to be registered on WordPress.com
UPDATE_ACCESS_TOKEN OnAuthenticationChanged Update in-memory and persisted Access Token
SIGN_OUT OnAuthenticationChanged Delete persisted Account, reset in-memory Account, delete access token

Authentication

Action OnChanged event Description
AUTHENTICATE OnAuthenticationChanged Attempt to sign in to WordPress.com account
DISCOVER_ENDPOINT OnDiscoveryResponse Discover the API endpoint for a self-hosted site
SEND_AUTH_EMAIL OnAuthEmailSent Send magic link e-mail

Clone this wiki locally