WordPress User and Author Functions

Below are the lists of WordPress user and author function This list also includes the deprecated functions. Function with red colour is deprecated in new version of WordPress.

WordPress User and Author Functions

Below are the list of WordPress user and author functions list:

Admins, Roles and Capabilities

  • add_cap
  • add_role
  • author_can
  • current_user_can
  • current_user_can_for_blog
  • get_role
  • get_super_admins
  • is_super_admin
  • map_meta_cap
  • remove_cap
  • remove_role
  • user_can

Users and Authors

  • auth_redirect
  • count_users
  • count_user_posts
  • count_many_users_posts
  • email_exists
  • get_currentuserinfo
  • get_current_user_id
  • get_profile (deprecated)
  • get_user_by
  • get_userdata
  • get_usernumposts (deprecated)
  • get_users
  • set_current_user (deprecated)
  • user_pass_ok (deprecated)
  • wp_authenticate
  • username_exists
  • validate_username
  • wp_dropdown_users
  • wp_get_current_user
  • wp_set_current_user
  • wp_set_password
  • get_author_posts_url
  • get_the_modified_author
  • is_multi_author

User meta

  • add_user_meta
  • delete_user_meta
  • get_user_meta
  • update_user_meta
  • get_the_author_meta

User insertion/removal

  • wp_create_user
  • wp_delete_user
  • wp_insert_user
  • wp_update_user

Login / Logout

  • is_user_logged_in
  • wp_login_form
  • wp_signon
  • wp_logout
  • wp_loginout
  • wp_logout_url

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.


Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.