MP_Logs::query_all_logs()

Query all posts.


Return Return

(WP_Query)


Top ↑

Source Source

File: mortgage-platform/Inc/Base/MP_Logs.php

    protected function query_all_logs(){

	    $leads = new \WP_Query(
		    array(

			    'post_type'      => $this->post_types(),
			    'posts_per_page' => - 1,
			    'meta_query'     => array(
				    'lead_log' => array( 'key' => MortgagePlatform::$prefix . 'lead_log' ),
			    ),
			    'orderby'        => 'lead_log',
			    'order'          => 'DESC',
			    //'orderby'        => array( 'post_modified' => 'DESC' ),
		    )
	    );

	    return $leads;
    }

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.