Switch language

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




user_pass_ok [ WordPress Function ]

user_pass_ok ( $user_login, $user_pass )
Parameters:
  • (string) $user_login User name.
  • (string) $user_pass User password.
Returns:
  • (bool) False if does not authenticate, true if username and password authenticates.
Defined at:



Check that the user login name and password is correct.

Source


<?php
function user_pass_ok($user_login$user_pass) {
    
$user wp_authenticate($user_login$user_pass);
    if ( 
is_wp_error($user) )
        return 
false;

    return 
true;
}
?>

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