Set the Course Progression conditionally for specific users.
Linear Progression in LearnDash forces users to consume your course content lesson by lesson. They cannot skip through the lessons. Let’s say you have a course with Linear progression. All enrollees are forced to access the content in this way. But what if you want to allow a small and specific set of users to […]
Protect specific fields in form entries on Gravity Forms.
Let’s say you have a form that collects sensitive data like email address, user government ID, etc. By default, when an entry is submitted all those details are exposed in the individual entry on the WordPress admin. Let’s also say that you delegate some tasks on your website and have collaborators that can access the […]
Disable the Side Cart conditionally in CheckoutWC on specific pages.
Following the filter’s name, you need to set it to true, and the Side Cart won’t pop up.
To dynamically change the value while detecting the page, you can use a preg_match function to check if certain slug is part of the URL.
Remove the upload percentage from the File Upload field in Gravity Forms.
If the user uploaded a file during that incorrect submission, the file will persist in the upload field through the page refresh with the error.
But, a percentage number will suffix the filename in the upload field.
Something like this:
Auto-enroll users in a Group or Course based on their email domain in LearnDash LMS.
LearnDash, by default, has different enrollment types: Open, Free, Buy Now, Recurring, and Closed. When you set a course access mode to Open, any user account registered on your website will be automatically enrolled in that course. Non-logged-in visitors will simply see all the course content. Just LearnDash won’t track any progress as there is […]
Count the remaining days left for course access expiration in LearnDash
Depending on your business model, you may allow lifetime access to the course content after your students complete the course. Maybe so they can revisit the lessons and boost their learning experience. Or simply as a good will bonus, and allow them to see course updates in the long run. On the other hand, you […]
Display the discounted amount per product on the Order Details in WooCommerce.
After a customer completes a purchase in your WooCommerce store, they get redirected to the Order Received page. This Order Received page contains information about the purchase, like the Order Number, the customer’s full name, email address, and payment method used, and there is also a table featuring the list of purchased items called Order […]
Enable LearnDash Focus Mode conditionally on a course-by-course basis.
Focus mode is the way LearnDash allows you to provide your users with a distraction-free interface in your courses.
Customize the WordPress author slug without a plugin
The author slug in WordPress is the ‘pretty link’ you can use to access the archive page of posts published by a specific user account.
Git Rebase or how to reconcile your local repository with a remote repository
Sometimes when starting a new project, there is no time to go to the remote Git server to create the repository first there then clone it to your local machine. Instead, it may be more convenient to start with git init and connect to the remote repository later. When creating the remote repository to upload […]