WordPress at Your Fingertips
function is not described

WP_Ajax_Upgrader_Skin::feedback() public WP 4.6.0

Stores a message about the upgrade.

{} It's a method of the class: WP_Ajax_Upgrader_Skin{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Ajax_Upgrader_Skin = new WP_Ajax_Upgrader_Skin();
$WP_Ajax_Upgrader_Skin->feedback( $data, ...$args );
$data(string|array|WP_Error) (required)
Message data.
...$args(mixed) (required)
Optional text replacements.

Changelog

Since 4.6.0 Introduced.
Since 5.3.0 Formalized the existing ...$args parameter by adding it to the function signature.

Code of WP_Ajax_Upgrader_Skin::feedback() WP 5.8.2

public function feedback( $data, ...$args ) {
	if ( is_wp_error( $data ) ) {
		foreach ( $data->get_error_codes() as $error_code ) {
			$this->errors->add( $error_code, $data->get_error_message( $error_code ), $data->get_error_data( $error_code ) );
		}
	}

	parent::feedback( $data, ...$args );
}