LLMS_Analytics::get_posts( [string] $post_type = '' )

Returns 10000 posts


Description Description


Parameters Parameters

$post_type

([string]) (Optional) [post type filter]

Default value: ''


Top ↑

Return Return

([mixed]) [array of post objects or false if no results found]


Top ↑

Source Source

File: includes/class.llms.analytics.php

	public static function get_posts( $post_type = '' ) {

		// Venues
		$args = array(
			'posts_per_page'   => 10000,
			'orderby'          => 'title',
			'order'            => 'ASC',
			'post_type'        => $post_type,
			'suppress_filters' => true,
		);
		$posts = get_posts( $args );

		return $posts;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.