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
2337           } else {
2338                $active = get_active_blog_for_user( $user_id );
2339                if ( $active )
2340                     $url = get_admin_url( $active->blog_id, $path, $scheme );
2341                else
2342                     $url = user_admin_url( $path, $scheme );
2343           }
2344      }
2345
2346      return apply_filters( 'user_dashboard_url', $url, $user_id, $path, $scheme);
2347 }
2348
2349 /**
2350  * Get the URL to the user's profile editor.
2351  *
2352  * @since 3.1.0
2353  *
2354  * @param int $user User ID
2355  * @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.