• 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_Download::has_variable_prices() – Determine if the download has variable prices enabled

You appear to be a bot. Output may be restricted

Description

Determine if the download has variable prices enabled

Usage

$bool = EDD_Download::has_variable_prices();

Parameters

Returns

bool True when the download has variable pricing enabled, false otherwise

Source

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

1 to 15 of 15
  public function has_variable_prices() {

    $ret = get_post_meta( $this->ID, '_variable_pricing', true );

    
/**
 * Override whether the download has variables prices.
 *
 * @since 2.3
 *
 * @param bool $ret Does download have variable prices?
 * @param int|string The ID of the download.
 */
    return (bool) apply_filters( 'edd_has_variable_prices', $ret, $this->ID );

  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 12th September 2021

Primary Sidebar

Information

Function name: EDD_Download::has_variable_prices
Class ref: EDD_Download
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/class-edd-download.php
File ref: includes/class-edd-download.php
Deprecated?: No
API Letters: D,E,H,P,V

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
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-2022. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites