Tribe__Tickets_Plus__Commerce__EDD__Main::maybe_disable_download_quantity( boolean $ret, int $item_id )
Disable EDD download quantity changes in checkout
Contents
Parameters
- $ret
-
(boolean) (Required)
- $item_id
-
(int) (Required)
Return
(void)
Source
File: src/Tribe/Commerce/EDD/Main.php
public function maybe_disable_download_quantity( $ret, $item_id ) {
$is_ticket = get_post_meta( $item_id, $this->event_key, true );
// disable quantity manipulation in checkout
if ( edd_is_checkout() && $is_ticket ) {
return true;
}
return $ret;
}
Changelog
| Version | Description |
|---|---|
| 4.10.2 | Introduced. |