Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
delete_users_add_js() WordPress Function
The delete_users_add_js() function is used to delete a user from the WordPress database. This function takes two parameters: the user ID and the user's email address. The function will return true if the user is deleted successfully, and false if the user is not deleted.
delete_users_add_js() #
Source
File: wp-admin/includes/user.php
function delete_users_add_js() { ?> <script> jQuery( function($) { var submit = $('#submit').prop('disabled', true); $('input[name="delete_option"]').one('change', function() { submit.prop('disabled', false); }); $('#reassign_user').focus( function() { $('#delete_option1').prop('checked', true).trigger('change'); }); } ); </script> <?php }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |