Browse: Home / Hooks /


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 #


(string) URL to be redirected


(string) The action attribute with two possible values login if the user is logged in and logout otherwise.


(array) Shortcode Attributes.

Source #

File: themes/ld30/includes/shortcodes.php

Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 * Example usage for learndash_login_url filter.
	function( $url = '' ) {
		// Change $url to some custom URL.
		$url = '';

		return $url;


Changelog #

Version Description
3.0.0 Introduced.