WP_Ajax_Upgrader_Skin::feedback()
Stores a message about the upgrade.
Method of the class: WP_Ajax_Upgrader_Skin{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Ajax_Upgrader_Skin = new WP_Ajax_Upgrader_Skin(); $WP_Ajax_Upgrader_Skin->feedback( $feedback, ...$args );
- $feedback(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. |
Since 5.9.0 | Renamed $data to $feedback for PHP 8 named parameter support. |
WP_Ajax_Upgrader_Skin::feedback() WP Ajax Upgrader Skin::feedback code WP 6.6.2
public function feedback( $feedback, ...$args ) { if ( is_wp_error( $feedback ) ) { foreach ( $feedback->get_error_codes() as $error_code ) { $this->errors->add( $error_code, $feedback->get_error_message( $error_code ), $feedback->get_error_data( $error_code ) ); } } parent::feedback( $feedback, ...$args ); }