learndash_check_query_post_type

learndash_check_query_post_type( array $query_args = array() )

Gets the posts count from the WP_Query post_type argument.


Description #


Parameters #

$query_args

(array) (Optional) The WP_Query query arguments array.

Default value: array()


Return #

(int) Number of posts for a post type.


Source #

File: includes/ld-misc-functions.php