• 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 – Download ID.

Returns

bool True if the download has variable prices, false otherwise.

Source

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


Lines:

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

  // Bail if no download ID was passed.
  if ( empty( $download_id ) ) {
    return false;
  }

  $download = new EDD_Download( $download_id );

  return $download
    ? $download->has_variable_prices()
    : false;
}
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 14th September 2022

Primary Sidebar

Information

Function name: edd_has_variable_prices
Plugin ref: Easy Digital Downloads
Version: 3.1.0.2
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 6.1.1
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-2023. All rights reserved.


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