How to get current_user_id from wordpress in node js?
First, you should not be modifying any database values by allowing users to send an AJAX call to your server specifying the user ID to use, that would allow anybody to send an AJAX call with the nonce to modify any user’s data. If you want to make an AJAX call to get the user’s … Read more