Browse: Home / Classes / Learndash_Admin_Posts_Listing /

Learndash_Admin_Posts_Listing::check_query_post_type_count

Learndash_Admin_Posts_Listing::check_query_post_type_count( string|array $post_type = '' )

Gets the posts count from the WP_Query post_type argument.


Description #


Parameters #

$post_type

(string|array) (Optional) Post type to check.

Default value: ''


Return #

(int) Number of posts for a post type.


Source #

File: includes/admin/class-learndash-admin-posts-listing.php


Changelog #

Changelog
Version Description
3.2.3 Introduced.