• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / edd_has_variable_prices() – Checks to see if a download has variable prices enabled.

You appear to be a bot. Output may be restricted

Description

Checks to see if a download has variable prices enabled.

Usage

$bool = edd_has_variable_prices( $download_id );

Parameters

$download_id
( int ) optional – ID number of the download to check

Returns

bool true if has variable prices, false otherwise

Source

File name: easy-digital-downloads/includes/download-functions.php
Lines:

1 to 9 of 9
function edd_has_variable_prices( $download_id = 0 ) {

  if( empty( $download_id ) ) {
    return false;
  }

  $download = new EDD_Download( $download_id );
  return $download->has_variable_prices();
}
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 8th April 2020

Primary Sidebar

Information

Function name: edd_has_variable_prices
Plugin ref: Easy Digital Downloads
Version: 2.10.1
Sourcefile: includes/download-functions.php
File ref: includes/download-functions.php
Deprecated?: No
API Letters: E,H,P,V

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.7
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites