GC_Ajax_Upgrader_Skin::feedback()
最后更新于:2021-11-26 09:12:44
GC_Ajax_Upgrader_Skin::feedback( string|array|GC_Error$data, mixed$args)Stores a message about the upgrade.
参数
- $data
-
(string|array|GC_Error) (Required) Message data.
- $args
-
(mixed) (Optional) text replacements.
源文件
文件: gc-admin/includes/class-gc-ajax-upgrader-skin.php
public function feedback( $data, ...$args ) {
if ( is_gc_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 );
}