Browse: Home / Functions /

learndash_get_assignments_pending_count

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

Gets the count of pending sfwd-assignment posts.


Description #


Parameters #

$query_args

(array) (Optional) The query arguments to get the pending assignments 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.