Skip to main content
Easy Digital Downloads Documentation
Documentation, Reference Materials, and Tutorials for Easy Digital Downloads

edd_has_variable_prices()

This function will check whether a download has variable prices enabled. If the specified ID has variable prices, the function will return true, otherwise it will return false.

Example:

if( edd_has_variable_prices( $download_id ) ) {
	// download has variable prices enabled
} else {
	// variable prices are not enabled
}