WordPress.org

Ready to get started?Download WordPress

Forums

Easy Digital Downloads
[resolved] Problem with edd_get_discount_id_by_code (4 posts)

  1. rambu
    Member
    Posted 1 year ago #

    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/

  2. rambu
    Member
    Posted 1 year ago #

    Thank you Pippin, I searched for github in offical website but i can't find out anything, thank for github project again. Whe do i update edd in my website, general update?

  3. The update will work just like any other WordPress plugin and should be out by sometime tomorrow.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.