Title: Call to undefined function get_current_user_role()
Last modified: September 23, 2021

---

# Call to undefined function get_current_user_role()

 *  [sanketthakkar](https://wordpress.org/support/users/sanketthakkar/)
 * (@sanketthakkar)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_current_user_role/)
 * Hello,
 * We are facing a network site admin login error due to the following error.
 * PHP Fatal error: Uncaught Error: Call to undefined function get_current_user_role()
   in /wp-content/plugins/kwayy-html-sitemap/kwayy-html-sitemap.php:101
 * Can you please check and let us know how can we fix this ?
 * Thanks!

The topic ‘Call to undefined function get_current_user_role()’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/kwayy-html-sitemap.svg)
 * [Kwayy HTML Sitemap](https://wordpress.org/plugins/kwayy-html-sitemap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kwayy-html-sitemap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kwayy-html-sitemap/)
 * [Active Topics](https://wordpress.org/support/plugin/kwayy-html-sitemap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kwayy-html-sitemap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kwayy-html-sitemap/reviews/)

 * 0 replies
 * 0 participants
 * Last reply from: [sanketthakkar](https://wordpress.org/support/users/sanketthakkar/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_current_user_role/)
 * Status: not resolved