Automattic\WooCommerce\Admin

PluginsHelper::get_action_data()public staticWC 1.0

Gets the plugin data for the first action.

Метод класса: PluginsHelper{}

Хуков нет.

Возвращает

Массив. Array of action data.

Использование

$result = PluginsHelper::get_action_data( $actions );
$actions(массив) (обязательный)
Array of AS actions.

Код PluginsHelper::get_action_data() WC 8.7.0

public static function get_action_data( $actions ) {
	$data = array();

	foreach ( $actions as $action_id => $action ) {
		$store  = new ActionScheduler_DBStore();
		$args   = $action->get_args();
		$data[] = array(
			'job_id'  => $args[1],
			'plugins' => $args[0],
			'status'  => $store->get_status( $action_id ),
		);
	}

	return $data;
}