includes/staticwp-admin.class.php
protected function preload($post_type = 'post')
    {
        $args = array(
            'fields'           => 'ids',
            'orderby'          => 'post_date',
            'order'            => 'DESC',
            'post_status'      => 'publish',
            'post_type'        => $post_type,
            'showposts'        => -1,
            'suppress_filters' => true,
        );
        $query = new WP_Query($args);

        if ($query->have_posts()) {
            $posts = apply_filters('staticwp_preload_' . $post_type . '_posts', $query->posts);
            foreach ($posts as $post_id) {
                $this->updateHtml($post_id);
            }
        }
    }
protected function preload($post_type = 'post')
    {
        $args = array(
            'fields'           => 'ids',
            'orderby'          => 'post_date',
            'order'            => 'DESC',
            'post_status'      => 'publish',
            'post_type'        => $post_type,
            'showposts'        => -1,
            'suppress_filters' => true,
        );
        $query = new WP_Query($args);

        if ($query->have_posts()) {
            $posts = apply_filters('staticwp_preload_' . $post_type . '_posts', $query->posts);
            foreach ($posts as $post_id) {
                $this->updateHtml($post_id);
            }
        }
    }
protected function preload ( $ post_type = 'post' ) { $ args = array ( 'fields' => 'ids' , 'orderby' => 'post_date' , 'order' => 'DESC' , 'post_status' => 'publish' , 'post_type' => $ post_type , 'showposts' => - 1 , 'suppress_filters' => true , ) ; $ query = new WP_Query ( $ args ) ; if ( $ query -> have_posts ( ) ) { $ posts = apply_filters ( 'staticwp_preload_' . $ post_type . '_posts' , $ query -> posts ) ; foreach ( $ posts as $ post_id ) { $ this -> updateHtml ( $ post_id ) ; } } }
Loops through posts to compile static HTML for each.

@since 1.3.0

@return void
Loops through posts to compile static HTML for each .