Automattic\WooCommerce\Admin
PluginsHelper::get_installation_status
Installation status.
Метод класса: PluginsHelper{}
Хуков нет.
Возвращает
Массив. Job data.
Использование
$result = PluginsHelper::get_installation_status( $job_id );
- $job_id(int)
- Job ID.
По умолчанию:null
Код PluginsHelper::get_installation_status() PluginsHelper::get installation status WC 11.0.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 );
}