private function add_default_data($data = [])
    {
        global $wp_query, $post;
        
        $data['wp_query'] = $wp_query;
        $data['post'] = &$post;
        $data['current_view'] = $this->current_view;
        $data['request'] = Request::get_root_instance();
        $data['errors'] = Validation::$errors;

        return $data;
    }
private function add_default_data($data = [])
    {
        global $wp_query, $post;
        
        $data['wp_query'] = $wp_query;
        $data['post'] = &$post;
        $data['current_view'] = $this->current_view;
        $data['request'] = Request::get_root_instance();
        $data['errors'] = Validation::$errors;

        return $data;
    }
private function add_default_data ( $ data = [ ] ) { global $ wp_query , $ post ; $ data [ 'wp_query' ] = $ wp_query ; $ data [ 'post' ] = & $ post ; $ data [ 'current_view' ] = $ this -> current_view ; $ data [ 'request' ] = Request :: get_root_instance ( ) ; $ data [ 'errors' ] = Validation :: $ errors ; return $ data ; }
Add default data to template.

@since  1.0.0

@param array $data Data array.
@return array
Add default data to template .