[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/js/ -> application-passwords.js (summary)

(no description)

File Size: 219 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  handleErrorResponse()
  addNotice()
  clearNotices()

Functions
Functions that are not part of a class:

handleErrorResponse( xhr, textStatus, errorThrown )   X-Ref
Handles an error response from the REST API.

since: 5.6.0
param: {jqXHR} xhr The XHR object from the ajax call.
param: {string} textStatus The string categorizing the ajax request's status.
param: {string} errorThrown The HTTP status error text.

addNotice( message, type )   X-Ref
Displays a message in the Application Passwords section.

since: 5.6.0
param: {string} message The message to display.
param: {string} type    The notice type. Either 'success' or 'error'.
returns: {jQuery} The notice element.

clearNotices()   X-Ref
Clears notice messages from the Application Passwords section.

since: 5.6.0



Generated: Fri Apr 26 01:00:03 2024 Cross-referenced by PHPXref 0.7.1