learndash_get_total_post_count learndash_get_total_post_count( string $post_type = '' ) Retrieves the number of posts by post_type. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses Used By 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. Related # Namespace # global @package # LearnDash / Misc Uses # Uses Uses Description includes/ld-misc-functions.php: learndash_admin_post_stati Filters list of post status shown in the admin. includes/class-ldlms-post-types.php: LDLMS_Post_Types::get_post_types () Get an array of all custom tables. Used By # Used By Used By Description includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::check_query_post_type_count () Gets the posts count from the WP_Query post_type argument. includes/ld-misc-functions.php: learndash_check_query_post_type () Gets the posts count from the WP_Query post_type argument. includes/admin/class-learndash-admin-menus-tabs.php: Learndash_Admin_Menus_Tabs::admin_header_panel () Show the new Admin header panel includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::show_post_type_selector () Shows post type filter above the table listing. includes/admin/classes-posts-edits/class-learndash-admin-course-edit.php: Learndash_Admin_Course_Edit::on_load () On Load handler function for this post type edit.
Uses # Uses Uses Description includes/ld-misc-functions.php: learndash_admin_post_stati Filters list of post status shown in the admin. includes/class-ldlms-post-types.php: LDLMS_Post_Types::get_post_types () Get an array of all custom tables.
Used By # Used By Used By Description includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::check_query_post_type_count () Gets the posts count from the WP_Query post_type argument. includes/ld-misc-functions.php: learndash_check_query_post_type () Gets the posts count from the WP_Query post_type argument. includes/admin/class-learndash-admin-menus-tabs.php: Learndash_Admin_Menus_Tabs::admin_header_panel () Show the new Admin header panel includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::show_post_type_selector () Shows post type filter above the table listing. includes/admin/classes-posts-edits/class-learndash-admin-course-edit.php: Learndash_Admin_Course_Edit::on_load () On Load handler function for this post type edit.