Browse: Home / Functions /

learndash_get_total_post_count

learndash_get_total_post_count( string $post_type = '' )

Retrieves the number of posts by post_type.


Description #


Parameters #

$post_type

(string) (Optional) The post type slug.

Default value: ''


Return #

(int) The Number of posts for the given post type.


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.