Functions related to users management in WordPress

22 Aug

Functions related to users management in WordPress

Functions related to users management in WordPress

These are some of the functions related to user management in WordPress. They are handy when handling user actions, updates and checks. The user.php file contains the WordPress User API functions, including:

  • get_users — Returns a list of users matching criteria provided.
  • add_user_meta, get_user_meta, delete_user_meta — Used to create, retrieve, and delete
    user metadata.
  • username_exists — Checks if a username exists.
  • email_exists — Checks if an e-mail address exists.
  • wp_insert_user and wp_update_user — Create and update a user account.

Bydr.code.skm

I am backend developer with passion in Web Application development using latest technologies like Laravel, PHP7, React, ECMAScript 6 and WordPress. I prefer spending time analyzing big data with Apache Spark. Apart from that, I do photography.