Protecting Custom End Points
-
I have made a couple of custom endpoints within my API and I am looking for a way to implement the use of your plugin with it.
This is what I have tried so far from within my response function for one of my end points.
var_dump(wp_get_current_user()); die();
The results are a user object with ID = 0;
From what I can tell from looking through the plugin code I should be able to use the function wp_get_current_user() since the filter used within this plugin to load the current user is within that wordpress function. However, when I attempt to use that function I get an empty user object.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Protecting Custom End Points’ is closed to new replies.