What is the right way to include a wp-admin file in your theme?

You need to add require_once statement at the beginning of your functions.php file:

require_once ABSPATH . 'wp-admin/includes/user.php';

Leave a Comment