learndash_login_url

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 #

File: themes/ld30/includes/shortcodes.php


Examples #

 <?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
);