See https://lifterlms.com/docs/how-do-i-add-custom-code-to-lifterlms-or-lifterlms-launchpad/
Controlhaus/woocommerce-lifterlms-coupon
Automatically creates a limited time coupon for a product and student after student enrolls in a course.
PHP
Automatically creates a limited time coupon for a product and student after student enrolls in a course.
PHP