Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_edit_profile_url [ WordPress Function ]

get_edit_profile_url ( $user, $scheme = 'admin' )
Parameters:
  • (int) $user User ID
  • (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.
Returns:
  • (string) Dashboard url link with optional path appended.
Defined at:



Get the URL to the user's profile editor.

Source


<?php
function get_edit_profile_url$user$scheme 'admin' ) {
    
$user = (int) $user;

    if ( 
is_user_admin() )
        
$url user_admin_url'profile.php'$scheme );
    elseif ( 
is_network_admin() )
        
$url network_admin_url'profile.php'$scheme );
    else
        
$url get_dashboard_url$user'profile.php'$scheme );

    return 
apply_filters'edit_profile_url'$url$user$scheme);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics