How to delete a WordPress account by FTP?

How can I remove a WordPress access when I only have FTP access?

If you want to delete user with id 666, add this code to your functions file:

<?php
function wpster_remove_admin_account(){
wp_delete_user(666);
}
add_action('init','wpster_remove_admin_account');
?>

Submit a Comment

Your email address will not be published. Required fields are marked *