Action hook 'delete_user_form'

in WP Core File wp-admin/includes/ms.php at line 987

View Source

delete_user_form

Action Hook

Hook Information

File Location wp-admin/includes/ms.php View on GitHub
Hook Type Action
Line Number 987

Hook Parameters

Type Name Description
array $users No description available

Usage Examples

Basic Usage
<?php
// Hook into delete_user_form
add_action('delete_user_form', 'my_custom_function', 10, 1);

function my_custom_function($users) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/ms.php:987 - How this hook is used in WordPress core
<?php
 982  
 983  	?>
 984  	</table>
 985  	<?php
 986  	/** This action is documented in wp-admin/users.php */
 987  	do_action( 'delete_user_form', $current_user, $allusers );
 988  
 989  	if ( 1 === count( $users ) ) :
 990  		?>
 991  		<p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, the user will be permanently removed.' ); ?></p>
 992  	<?php else : ?>

PHP Documentation

<?php
/**
 * @param array $users
 * @return bool
 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/includes/ms.php
Related Hooks

Related hooks will be displayed here in future updates.