I\'m trying to get the current user info in my plugin using the func wp_get_current_user(). But am getting Call to undefined function wp_get_current_user()
Call to undefined function wp_get_current_user()
Quick fix include_once(ABSPATH . 'wp-includes/pluggable.php'); add this line on your capabilities.php
include_once(ABSPATH . 'wp-includes/pluggable.php');