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

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

Must run as early as possible, particularly before any client code is loaded This also runs before Core has parsed the request and set the \REST_REQUEST constant
public prepare_environment ( )
    public function prepare_environment()
    {
        if (!is_rest_endpoint_request('run')) {
            return;
        }
        ignore_user_abort(true);
        set_time_limit(JOB_TIMEOUT_IN_MINUTES * MINUTE_IN_SECONDS);
        define('DOING_CRON', true);
    }