WP_Upgrader_Skin::hide_process_failed()publicWP 5.5.0

Hides the process_failed error message when updating by uploading a zip file.

Method of the class: WP_Upgrader_Skin{}

No Hooks.

Return

true|false. True if the error should be hidden, false otherwise.

Usage

$WP_Upgrader_Skin = new WP_Upgrader_Skin();
$WP_Upgrader_Skin->hide_process_failed( $wp_error );
$wp_error(WP_Error) (required)
WP_Error object.

Changelog

Since 5.5.0 Introduced.

WP_Upgrader_Skin::hide_process_failed() code WP 6.5.4

public function hide_process_failed( $wp_error ) {
	return false;
}