LearnDash: Send Unenrolled Students to the Course Page
When a logged-in user opens a lesson or topic of a course they are not enrolled in, they are sent to the course page where they can enroll, instead of seeing a locked page.
Snippet Library
3,040 snippets written and tested by the WPIDE team.
When a logged-in user opens a lesson or topic of a course they are not enrolled in, they are sent to the course page where they can enroll, instead of seeing a locked page.
Redirects logged-out visitors who open a lesson, topic or quiz to the login screen, then brings them back to that page after they log in.
Shows a notice at the top of course, lesson and topic pages telling enrolled students the date their access ends, for courses that use access expiration.
Tells search engines not to index LearnDash lessons, topics, quizzes and certificates, which are usually locked and only show a login message to crawlers.
Adds a [wpide_ld_students] shortcode that shows social proof such as "1,240 students enrolled" on a course page, cached so it stays fast.
Adds a "Students" column to the LearnDash Courses list showing how many users are enrolled in each course, cached for speed.
Closes comments on LearnDash lessons, topics and quizzes, and hides existing ones, while leaving comments on courses and blog posts alone.
Adds a dashboard widget that shows how many essay submissions are waiting to be graded, with a link straight to the list.
Removes the category or tag archives you list (by term ID) from All in One SEO's sitemap.
Hides posts and pages that you set to noindex in Yoast SEO or Rank Math from your own site search, such as thank-you pages and thin landing pages.
Removes post entries that have not been modified for several years from All in One SEO's post sitemap.
Removes posts that have not been updated for a number of years from the Yoast SEO post sitemap, so crawlers spend time on fresher content.
Adds a small, separated disclaimer built from blocks at the end of posts and pages, for example a "not financial or medical advice" notice.
Adds a Cancel button in My Account for orders that are on hold (for example unpaid bank transfers), not just pending ones.
Adds a "Clear page cache" item to the toolbar for editors, who normally cannot purge WP Rocket, protected with a nonce and limited to clearing the page they are viewing.
WordPress only lets administrators edit the privacy policy page. This allows editors to update it too.
Gives editors access to Appearance > Menus and Widgets without letting them switch themes or open the Customizer.
Gives editors access to the Redirection plugin's screens so they can add and fix redirects themselves, without making them administrators.
Allows editors to add, edit and remove users, while making sure they can never create administrators or touch administrator accounts.
Lets editors open the Users screen to look people up, without being able to add, edit, promote or delete anyone.
Adds a [wpide_deactivate_account] shortcode with a button members can use to close their account; they are logged out and blocked, and an administrator can reactivate them later.
Adds password and confirm-password fields to the WordPress registration form, so new members pick their own password instead of waiting for a "set your password" email.
Adds an "I am signing up as" choice to the registration form that gives the new account one of the roles you allow, for example Reader or Writer.
Sends a CORS header with your RSS and Atom feeds, so web apps, widgets and dashboards on other domains can load them with fetch() instead of hitting a browser error.