wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_hash_password_options › WordPress过滤钩子

Since7.0.0
已弃用n/a
› apply_filters( 'wp_hash_password_options', array()
参数: (2)
  • () options Array of options to pass to the password hashing functions. By default this is an empty array which means the default options will be used.
    Required: Yes
  • () algorithm The hashing algorithm in use.
    Required: Yes
定义在:
文档:

Filters the options passed to the password_hash() and password_needs_rehash() functions.

The default hashing algorithm is bcrypt, but this can be changed via the {@see 'wp_hash_password_algorithm'} filter. You must ensure that the options are appropriate for the algorithm in use.




源码

$options = apply_filters( 'wp_hash_password_options', array(), $algorithm );