um_locate_user_profile_not_loggedin__redirect

Hook type

Filter

Description

Change redirect URL from user profile for not logged in user

Parameters

$url

(string) Redirect URL

Usage

<?php add_filter( 'um_locate_user_profile_not_loggedin__redirect', 'function_name', 10, 1 ); ?>

Examples

<?php
add_filter( 'um_locate_user_profile_not_loggedin__redirect', 'my_user_profile_not_loggedin__redirect', 10, 1 );
function my_user_profile_not_loggedin__redirect( $url ) {
    // your code here
return $url;
}
?>

Change Log

Since: 2.0

Source

um_locate_user_profile_not_loggedin__redirect is located in includes/core/class-rewrite.php::line 269