wphooks.info - show_password_fields

show_password_fields

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/user-edit.php:
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
		/**
		 * Filters the display of the password fields.
		 *
		 * @since 1.5.1
		 * @since 2.8.0 Added the `$profileuser` parameter.
		 * @since 4.4.0 Now evaluated only in user-edit.php.
		 *
		 * @param bool    $show        Whether to show the password fields. Default true.
		 * @param WP_User $profileuser User object for the current user to edit.
		 */
		if ( $show_password_fields = apply_filters( 'show_password_fields', true, $profileuser ) ) :
			?>
	</table>

	<h2><?php _e( 'Account Management' ); ?></h2>
<table class="form-table">
<tr id="password" class="user-pass1-wrap">
	<th><label for="pass1"><?php _e( 'New Password' ); ?></label></th>
	<td>
		<input class="hidden" value=" " /><!-- #24364 workaround -->