Automattic\WooCommerce\Admin

PluginsHelper::get_installation_status()public staticWC 1.0

Installation status.

Method of the class: PluginsHelper{}

No Hooks.

Return

Array. Job data.

Usage

$result = PluginsHelper::get_installation_status( $job_id );
$job_id(int)
Job ID.
Default: null

PluginsHelper::get_installation_status() code WC 7.1.0

public static function get_installation_status( $job_id = null ) {
	$actions = WC()->queue()->search(
		array(
			'hook'    => 'woocommerce_plugins_install_callback',
			'search'  => $job_id,
			'orderby' => 'date',
			'order'   => 'DESC',
		)
	);

	return self::get_action_data( $actions );
}