wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_set_password › WordPress Function

Seit2.5.0
Veraltetn/v
wp_set_password ( $password, $user_id )
Parameter: (2)
  • (string) $password The plaintext new user password.
    Erforderlich: Ja
  • (int) $user_id User ID.
    Erforderlich: Ja
Definiert in:
Codex:
Changelog:
  • 6.8.0

Updates the user's password with a new hashed one.

For integration with other applications, this function can be overwritten to instead use the other package password checking algorithm. Please note: This function should be used sparingly and is really only meant for single-time application. Leveraging this improperly in a plugin or theme could result in an endless loop of password resets if precautions are not taken to ensure it does not execute on every page load.


Quellcode

Bald...