i am adding the page by going to the pages section in the dashboard and simply adding a new page. In the html for that page i embed a php file. That makes the php page independent of buddypress.
I guess a better way of looking at it would be, if i accessed an independant php page, how could i make it return the user id of buddypress.
i created a buddypress page and that page embeds a php file to display, for testing purposes i just want that to display the users id. the file is called myphp.php and i have it in the buddypress directory.
im new to php so i’m not sure how to do this. i feel like im supposed to include one of buddypress’s php files in order to call the function.