Automattic\WooCommerce\Admin
PluginsHelper::get_action_data()
Gets the plugin data for the first action.
Method of the class: PluginsHelper{}
No Hooks.
Return
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 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; }