LLMS_Analytics::get_posts( [string] $post_type = '' )
Returns 10000 posts
Description Description
Parameters Parameters
- $post_type
-
([string]) (Optional) [post type filter]
Default value: ''
Return Return
([mixed]) [array of post objects or false if no results found]
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; }
Expand full source code Collapse full source code View on GitHub