Acf User Functions Global Functions

acf_get_users()

acf_get_users

  • Similar to the get_users() function but with extra functionality.
  • @date 9/1/19
  • @since ACF 5.7.10
  • @param array $args The query args.
  • @return array

acf_get_user_result()

acf_get_user_result

  • Returns a result containing “id” and “text” for the given user.
  • @date 21/5/19
  • @since ACF 5.8.1
  • @param WP_User $user The user object.
  • @return array

acf_get_user_role_labels()

acf_get_user_role_labels

  • Returns an array of user roles in the format “name => label”.
  • @date 20/5/19
  • @since ACF 5.8.1
  • @param array $roles A specific array of roles.
  • @return array

acf_allow_unfiltered_html()

acf_allow_unfiltered_html

  • Returns true if the current user is allowed to save unfiltered HTML.
  • @date 9/1/19
  • @since ACF 5.7.10
  • @return boolean