• Resolved Uriahs Victor

    (@uriahs-victor)


    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

    • This topic was modified 5 years, 10 months ago by Uriahs Victor.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    Could you point to the exact location of the class method you are referring to along with the code that you have so far.

    Kind regards,

    AJ a11n

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_downloads() with parameter’ is closed to new replies.