获取建议如何创建强密码的文本。

原型

wp_get_password_hint()

返回值

(string)  密码提示文本。

源文件

路径:wp-includes/user.php

<?php
...
function wp_get_password_hint() {
	$hint = __( 'Hint: The password should be at least twelve characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ &amp; ).' );
	/**
	 * Filters the text describing the site's password complexity policy.
	 *
	 * @since 4.1.0
	 *
	 * @param string $hint The password hint text.
	 */
	return apply_filters( 'password_hint', $hint );
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/wp_get_password_hint/