Title: wp_delete_user() undefined
Last modified: March 17, 2017

---

# wp_delete_user() undefined

 *  [vjk](https://wordpress.org/support/users/vjk/)
 * (@vjk)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wp_delete_user-undefined/)
 * Hi,
 * Deleting users via cron import doesn’t work:
    PHP Fatal error: Call to undefined
   function wp_delete_user() in —-/wp-content/plugins/import-users-from-csv-with-
   meta/importer.php on line 472
 * Is this missing?
    require_once(ABSPATH.’wp-admin/includes/user.php’);
 * regards,
 * Ville

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wp_delete_user-undefined/#post-8925051)
 * Ville,
 * Thanks for your support, I am preparing a new version so I would include it to
   avoid this problem.
 * I think it worked before but better with the require_once to avoid problems.
 *  Thread Starter [vjk](https://wordpress.org/support/users/vjk/)
 * (@vjk)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wp_delete_user-undefined/#post-8981166)
 * Hi Javier,
 * The current version 1.10.6 still seems to have this bug. I hope it will be fixed
   in the next version.
 * br,
 * Ville
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wp_delete_user-undefined/#post-8985985)
 * [@vjk](https://wordpress.org/support/users/vjk/),
 * Yes, sorry, I have had problems and I could not insert it.
 * I add it in the new one.
 * Please remember we are a bussiness and we try to do the best for free for all
   but with a little donation or a good review it makes it easier.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wp_delete_user-undefined/#post-9000569)
 * Just done it.
 * Sorry for the delay.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wp_delete_user() undefined’ is closed to new replies.

 * ![](https://ps.w.org/import-users-from-csv-with-meta/assets/icon-256x256.png?
   rev=1174343)
 * [Import and export users and customers](https://wordpress.org/plugins/import-users-from-csv-with-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-users-from-csv-with-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/wp_delete_user-undefined/#post-9000569)
 * Status: not resolved