Clanbite Admin Since 1.6.0 Updated in 1.6.2

apply_filters( 'clanbite_login_redirect_url', string $url, \WP_User $user, string $mode )

Filters where a member is sent after a plain sign-in.

Return an empty string to keep the WordPress default (the dashboard). The destination must be on this site or an allowed redirect host: WordPress passes it through wp_safe_redirect().

Filter PHP

Parameters

$url (string)

Destination chosen in the settings (empty for "Dashboard").

$user (\WP_User)

Signed-in user.

$mode (string)

Setting value: dashboard, home or custom.

Example

add_filter( 'clanbite_login_redirect_url', function ( $url, $user, $mode ) {
	// Change $url here.
	return $url;
}, 10, 3 );

Defined in inc/admin/class-general-settings.php

Changelog

VersionDescription
1.6.2Updated.
1.6.0Introduced.