Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: user_dashboard_url

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2275           } else {
2276                $active = get_active_blog_for_user( $user_id );
2277                if ( $active )
2278                     $url = get_admin_url( $active->blog_id, $path, $scheme );
2279                else
2280                     $url = user_admin_url( $path, $scheme );
2281           }
2282      }
2283
2284      return apply_filters( 'user_dashboard_url', $url, $user_id, $path, $scheme);
2285 }
2286
2287 /**
2288  * Get the URL to the user's profile editor.
2289  *
2290  * @since 3.1.0
2291  *
2292  * @param int $user User ID
2293  * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes.