I get a 500 HTTP Error (Display Error is enabled) when this script is ran.
centOS 7 latest w/WHM & Wordpress
<?php
include 'wp-includes/pluggable.php';
$user = wp_get_current_user();
echo $user
?>
Expecting userID echo'd on page. Results in HTTP 500 error. Nothing logged in php log.
I looked into wordpress documentations and pluggable.php should be the script to include.