get_downloads() with parameter
-
I was looking into the doc for get_downloads(); and saw that it can accept an array as a parameter, by default the function returns an object but if I just want the download ids for a particular product it doesn’t seem to just give me only the ids..it still returns the object for some reason:
$args = array( 'return' => 'ids', ); $download_ids = $product->get_downloads($args); print_r($download_ids);//returns an object which returns file name etc rather than just the download ids
Any help is appreciated
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get_downloads() with parameter’ is closed to new replies.