Welcome, visitor! Log in
 

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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

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
2305           } else {
2306                $active = get_active_blog_for_user( $user_id );
2307                if ( $active )
2308                     $url = get_admin_url( $active->blog_id, $path, $scheme );
2309                else
2310                     $url = user_admin_url( $path, $scheme );
2311           }
2312      }
2313
2314      return apply_filters( 'user_dashboard_url', $url, $user_id, $path, $scheme);
2315 }
2316
2317 /**
2318  * Get the URL to the user's profile editor.
2319  *
2320  * @since 3.1.0
2321  *
2322  * @param int $user User ID
2323  * @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.