public function delete_account_button_admin() { // Bail to prevent administrators from deleting their own accounts if (current_user_can('manage_options')) { return; } printf('<h3>%s</h3>', __('Delete Account', 'wp-delete-user-accounts')); printf('<p>%s</p>', __('This will cause your account to be permanently deleted. You will not be able to recover your account.', 'wp-delete-user-accounts')); wp_delete_user_account_delete_button(); }
<?php /** * Template for the [wp_delete_user_accounts] shortcode * * @package WP Delete User Accounts * @author Ren Ventura */ ?> <div class="delete-user-account-container"> <p><?php echo $label; ?> </p> <?php wp_delete_user_account_delete_button($button_text); ?> </div>