Generate Certificates Manually
-
I have been tasked with modifying the LearnPress and LearnPress Certificates plugins to generate custom certificates for old offline course certificates. I added the code in the child theme.
Usually, the user’s course certificate appears in their profile under the certificates section after they complete the course requirements. However, I added all the fields on the custom certificate generator page myself.
Hence, the normal certificate conditions still need to be met because no courses or users exist. Therefore, the only trigger is the “Generate Certificate” button. When clicking on the “Generate Certificate” button, it should perform the following modifications:- Create a new regular order in LearnPress with the custom course name and user name.
- Add the custom field values to the chosen certificate template.
- Add links to the generated certificate for download on the “Generate Certificates” and order details pages.
- You must be logged in to reply to this topic.