This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Actions and OnChanged events
Alex edited this page Mar 13, 2017
·
10 revisions
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 |
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 |
Action | OnChanged event | Description |
---|---|---|
FETCH_COMMENTS |
OnCommentChanged |
Fetch all comments for site |
FETCH_COMMENT |
OnCommentChanged |
Fetch single comment for site |
CREATE_NEW_COMMENT |
OnCommentChanged |
Create new comment |
PUSH_COMMENT |
OnCommentChanged |
Publish a comment |
DELETE_COMMENT |
OnCommentChanged |
Delete a comment from the server |
LIKE_COMMENT |
OnCommentChanged |
Like a comment |
UPDATE_COMMENT |
OnCommentChanged |
Update local comment data |
REMOVE_COMMENTS |
OnCommentChanged |
Remove all persisted comments for site |
REMOVE_COMMENT |
OnCommentChanged |
Remove a persisted comment for site |
REMOVE_ALL_COMMENTS |
OnCommentChanged |
Remove all persisted comments |