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

Gets the count of active/pubished courses.


Description Description


Parameters Parameters

$query_args

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

Default value: array()

$return_field

(Optional) The WP_Query field to return. Default 'found_posts'.

Default value: 'found_posts'


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/ld-reports.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.