learndash_get_courses_count

learndash_get_courses_count( array $query_args = array(),  string $return_field = 'found_posts' )

Gets the count of active/pubished courses.


Description #


Parameters #

$query_args

(array) (Optional) The query arguments to get the course count.

Default value: array()

$return_field

(string) (Optional) The WP_Query field to return.

Default value: 'found_posts'


Return #

(mixed) Returns the WP_Query object if the return_field is empty otherwise the specified WP_Query return field.


Source #

File: includes/ld-reports.php


Changelog #

Changelog
Version Description
2.3.0 Introduced.