WordPress.org

Forums

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

  1. rambu
    Member
    Posted 2 years 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. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 2 years ago #

  3. rambu
    Member
    Posted 2 years 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?

  4. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 2 years ago #

    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

  • Easy Digital Downloads
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.