[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/includes/ -> class-wp-ajax-upgrader-skin.php (summary)

Upgrader API: WP_Ajax_Upgrader_Skin class

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

Defines 1 class

WP_Ajax_Upgrader_Skin:: (5 methods):
  __construct()
  get_errors()
  get_error_messages()
  error()
  feedback()


Class: WP_Ajax_Upgrader_Skin  - X-Ref

Upgrader Skin for Ajax WordPress upgrades.

This skin is designed to be used for Ajax updates.

__construct( $args = array()   X-Ref
Constructor.

Sets up the WordPress Ajax upgrader skin.

param: array $args Optional. The WordPress Ajax upgrader skin arguments to
since: 4.6.0

get_errors()   X-Ref
Retrieves the list of errors.

return: WP_Error Errors during an upgrade.
since: 4.6.0

get_error_messages()   X-Ref
Retrieves a string for error messages.

return: string Error messages during an upgrade.
since: 4.6.0

error( $errors, ...$args )   X-Ref
Stores an error message about the upgrade.

param: string|WP_Error $errors  Errors.
param: mixed           ...$args Optional text replacements.
since: 4.6.0
since: 5.3.0 Formalized the existing `...$args` parameter by adding it

feedback( $feedback, ...$args )   X-Ref
Stores a message about the upgrade.

param: string|array|WP_Error $feedback Message data.
param: mixed                 ...$args  Optional text replacements.
since: 4.6.0
since: 5.3.0 Formalized the existing `...$args` parameter by adding it
since: 5.9.0 Renamed `$data` to `$feedback` for PHP 8 named parameter support.



Generated: Sat Apr 20 01:00:03 2024 Cross-referenced by PHPXref 0.7.1