Stores a message about the upgrade.
Parameters
$feedback
string|array|WP_Errorrequired- Message data.
$args
mixedoptional- Optional text replacements.
Source
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 );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.