Switch language

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




default_password_nag [ WordPress Function ]

default_password_nag ( No parameters )
Defined at:



No description yet.

Source


<?php
function default_password_nag() {
    global 
$pagenow;
    if ( 
'profile.php' == $pagenow || ! get_user_option('default_password_nag') ) //Short circuit it.
        
return;

    echo 
'<div class="error default-password-nag">';
    echo 
'<p>';
    echo 
'<strong>' __('Notice:') . '</strong> ';
    
_e('You&rsquo;re using the auto-generated password for your account. Would you like to change it to something easier to remember?');
    echo 
'</p><p>';
    
printf'<a href="%s">' __('Yes, take me to my profile page') . '</a> | 'admin_url('profile.php') . '#password' );
    
printf'<a href="%s" id="default-password-nag-no">' __('No thanks, do not remind me again') . '</a>''?default_password_nag=0' );
    echo 
'</p></div>';
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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