Using a plugin,I am looking a way to Show/Hide all Content after Headers are sent. If I have an authenticated user then show the content other wise redirect the user to authenticate first.
I want to use Facebook PHP SDK to authenticate the user. My questions are
- Using which Hook or Action I can put a check whether User is authenticated or Not.
- If user is authenticated, continue with WordPress Loop to show Content else Redirect to Facebook for Authentication.
A rough pseudo code is
After header if Facebook user Continue WordPress Loop else Redirect