edd_get_random_downloads( int $num = 3, bool $post_ids = true )
Returns random downloads
Description Description
Parameters Parameters
- $num
-
(Optional) The number of posts to return
Default value: 3
- $post_ids
-
(Optional) True for array of post objects, else array of ids
Default value: true
Return Return
(mixed) $query Returns an array of id's or an array of post objects
Source Source
File: includes/download-functions.php
Changelog Changelog
Version | Description |
---|---|
1.7 | Introduced. |