learndash_get_login_url()
Returns the appropriate login URL based on the active LearnDash theme and settings.
Description #
For sites using the LD30 theme with Login & Registration enabled, it returns ‘#login’ and loads the login modal HTML. Otherwise, it returns the WordPress login URL with a redirect back to the current page.
Return #
(string) Login URL - Either '#login' for modal or WordPress login page URL.
Source #
Changelog #
| Version | Description |
|---|---|
| 4.21.0 | Added the learndash_login_url filter. |
| 3.6.0 | Introduced. |