Automattic\WooCommerce\Admin
PluginsHelper::get_action_data
Gets the plugin data for the first action.
Method of the class: PluginsHelper{}
No Hooks.
Returns
Array. Array of action data.
Usage
$result = PluginsHelper::get_action_data( $actions );
- $actions(array) (required)
- Array of AS actions.
PluginsHelper::get_action_data() PluginsHelper::get action data code WC 10.3.6
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;
}