Get Core Functionality from Within a (Secondary) Plugin File
You should include your includes/authentication.php in your myplugin.php like that: include(‘includes/authentication.php’); You can use all the WordPress-Functions there. If there are any specific functions that don’t work for you, please list them, and show us how you included your includes/authentication.php.