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
2213           } else {
2214                $active = get_active_blog_for_user( $user_id );
2215                if ( $active )
2216                     $url = get_admin_url( $active->blog_id, $path, $scheme );
2217                else
2218                     $url = user_admin_url( $path, $scheme );
2219           }
2220      }
2221
2222      return apply_filters( 'user_dashboard_url', $url, $user_id, $path, $scheme);
2223 }
2224
2225 /**
2226  * Get the URL to the user's profile editor.
2227  *
2228  * @since 3.1.0
2229  *
2230  * @param int $user User ID
2231  * @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.