learndash_get_courses_count( array $query_args = array(), string $return_field = 'found_posts' )
Gets the count of active/published 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
return field. object if the return_field is empty otherwise the specified
WP_Query
Source #
File: includes/ld-reports.php
Changelog #
Version | Description |
---|---|
2.3.0 | Introduced. |