Support » Plugin: Easy Digital Downloads » Problem with edd_get_discount_id_by_code

  • Resolved rambu

    (@rambu)


    function edd_get_discount_id_by_code will return a notice when i enter an invalid discount so can i change this to :

    function edd_get_discount_id_by_code( $code ) {
    	$discount = edd_get_discount_by_code( $code );
    
    	if( $discount ) {
    		return $discount->ID;
    	}else{
    		return false;
    	}
    }

    Thanks

    http://wordpress.org/extend/plugins/easy-digital-downloads/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with edd_get_discount_id_by_code’ is closed to new replies.