delete_user_form

delete_user_form

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('delete_user_form') is found 2 times:

  • /wp-admin/includes/ms.php line 985
    	?>
    	</table>
    	<?php
    	/** This action is documented in wp-admin/users.php */
    	do_action( 'delete_user_form', $current_user, $allusers );
    
    	if ( 1 === count( $users ) ) :
    		?>
    		<p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, the user will be permanently removed.' ); ?></p>
    	<?php else : ?>
    		<p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, these users will be permanently removed.' ); ?></p>
    
  • /wp-admin/users.php line 441
    			 *
    			 * @param WP_User $current_user WP_User object for the current user.
    			 * @param int[]   $user_ids     Array of IDs for users being deleted.
    			 */
    			do_action( 'delete_user_form', $current_user, $user_ids );
    			?>
    			<input type="hidden" name="action" value="dodelete" />
    			<?php submit_button( __( 'Confirm Deletion' ), 'primary' ); ?>
    
    		<?php else : ?>
    
    

See this hook used in plugins: