Automattic\WooCommerce\Admin

PluginsHelper::get_activation_status()public staticWC 1.0

Activation status.

{} It's a method of the class: PluginsHelper{}

No Hooks.

Return

Array. Array of action data.

Usage

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

Code of PluginsHelper::get_activation_status() WC 6.6.1

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

	return self::get_action_data( $actions );
}