apply_filters( 'learndash_login_url', string $url, string $action, array $atts )
Filters the login URL that a user will be sent to for login. This filter can also be used for logout URL the user will be sent to after the logout action.
Description #
Parameters #
- $url
-
(string) URL to be redirected
- $action
-
(string) The action attribute with two possible values login if the user is logged in and logout otherwise.
- $atts
-
(array) Shortcode Attributes.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_login_url filter. */ add_filter( 'learndash_login_url', function( $url = '' ) { // Change $url to some custom URL. $url = 'http://www.google.com'; return $url; }, 30, 1 );
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |