Hi All i am in word Press
I have successfully integrated WordPress membership plugin and all data of users is saved in database. Different users have different levels.
My major task is to disable some website button according to user levels. so i try to Get user id in report.php using
require_once("/wp-load.php"); $current_user = wp_get_current_user();
But it gives internal 500 error my directry structure is /myproject/wp-content/themes/fount/myfolder/report.php