Automattic\WP\Cron_Control\Events::get_event PHP Метод

get_event() публичный Метод

The $instance argument is hashed for us by Core, while we hash the action to avoid information disclosure
public get_event ( $timestamp, $action_hashed, $instance )
    public function get_event($timestamp, $action_hashed, $instance)
    {
        $events = get_option('cron');
        $event = false;
        $filtered_events = collapse_events_array($events, $timestamp);
        foreach ($filtered_events as $filtered_event) {
            if (hash_equals(md5($filtered_event['action']), $action_hashed) && hash_equals($filtered_event['instance'], $instance)) {
                $event = $filtered_event['args'];
                $event['timestamp'] = $filtered_event['timestamp'];
                $event['action'] = $filtered_event['action'];
                $event['instance'] = $filtered_event['instance'];
                break;
            }
        }
        return $event;
    }