EDD_Download
EDD_Download Class
Description Description
Source Source
File: includes/class-edd-download.php
Changelog Changelog
Version | Description |
---|---|
2.2 | Introduced. |
Methods Methods
- __construct — Get things going
- __get — Magic __get function to dispatch a call to retrieve a private property
- can_purchase — Checks if the download can be purchased
- create — Creates a download
- decrease_earnings — Decrease the earnings by the given amount
- decrease_sales — Decrement the sale count by one
- get_bundle_pricing_variations — Get pricing variations for bundled items
- get_bundled_downloads — Retrieves the Download IDs that are bundled with this Download
- get_button_behavior — Retrieve the purchase button behavior
- get_earnings — Retrieve the total earnings for the download
- get_file_download_limit — Retrieve the file download limit
- get_file_price_condition — Retrieve the price option that has access to the specified file
- get_files — Retrieve the file downloads
- get_ID — Retrieve the ID
- get_name — Retrieve the download name
- get_notes — Retrieve the download notes
- get_price — Retrieve the price
- get_prices — Retrieve the variable prices
- get_sales — Retrieve the sale count for the download
- get_sku — Retrieve the download sku
- get_type — Retrieve the download type, default or bundle
- get_variable_priced_bundled_downloads — Retrieve the Download IDs that are bundled with this Download based on the variable pricing ID passed
- has_variable_prices — Determine if the download has variable prices enabled
- increase_earnings — Increase the earnings by the given amount
- increase_sales — Increment the sale count by one
- is_bundled_download — Determine if this is a bundled download
- is_free — Determine if the download is free or if the given price ID is free
- is_single_price_mode — Determine if single price mode is enabled or disabled
- quantities_disabled — Is quantity input disabled on this product?
- setup_download — Given the download data, let's set the variables
- update_meta — Updates a single meta entry for the download