• Resolved leemon

    (@leemon)


    Hi,

    Is there a way to modify (via a hook, setting, etc.) the behavior of your plugin so it only generates the gift card code when an order is set to “Processing” or “Completed”, but doesn’t send the gift card email to the recipient automatically? In a site I’m working on I want the admin to be the one to send this email manually.

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    hope you are doing well!

    by default, the gift card codes are generated with processing and completed order statuses.

    To turn off this email you have to add the next code in the functions.php of your active theme:
    add_filter( 'ywgc_send_gift_card_code_by_default', '__return_false' );

    I hope it helps you.

    Have a nice day! ??

    Thread Starter leemon

    (@leemon)

    Thanks!

    Plugin Support Alexis Salazar

    (@asaldel)

    Hello there.

    Perfect. You are welcome!

    We’ll set this topic on solved.

    If you have any other problems, don’t hesitate to open a new one.

    Have a nice day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Don’t send gift card automatically’ is closed to new replies.