WordPress at Your Fingertips
function is not described

default_password_nag_handler() WP 2.8.0

No Hooks.

Return

null. Nothing.

Usage

default_password_nag_handler( $errors );
$errors(false)
Deprecated.
Default: false

Notes

  • Global. Int. $user_ID

Changelog

Since 2.8.0 Introduced.

Code of default_password_nag_handler() WP 5.8.2

function default_password_nag_handler( $errors = false ) {
	global $user_ID;
	// Short-circuit it.
	if ( ! get_user_option( 'default_password_nag' ) ) {
		return;
	}

	// get_user_setting() = JS-saved UI setting. Else no-js-fallback code.
	if ( 'hide' === get_user_setting( 'default_password_nag' )
		|| isset( $_GET['default_password_nag'] ) && '0' == $_GET['default_password_nag']
	) {
		delete_user_setting( 'default_password_nag' );
		update_user_meta( $user_ID, 'default_password_nag', false );
	}
}