WordPress Woocommerce Point of Sale plugin

I need some assistance on what PHP hook to use, when a user selects a customer at the top right on the POS page What I really just need is the current, selected user's ID. This way, we can make an API call that collects the subscription, based on that selected user ID. Then we can show a popup that, if the subscription is not active, warns the user that the selected customer is not paying. Obviously this is custom functionally I need to add, but I am stuck on trying to get the selected user's ID. See image for reference. Things I have done so far. I have tried using the pre_user_query hook, but nothing. It also looks like the POS page, does not work with the custom code snippets add on, because any code I add in the code snippets just does nothing, like simply adding a console log in the code snippets. does not show when you are on the POS page.

Comment (0)

You’ll be in good company