• Greetings

    Sorry if it’s a dumb question, but I can’t figure it out after some times on Google.

    I need to run some php code on the current user after a form is submitted. I tried the hooks “wpcf7_submit” and “wpcf7_submit”, but it seems at that time the user is not logged in (current user ID is always 0), even if the form was submitted by a user who is actually logged in.

    Is there a hook called when a form is submitted at a time when the current user is identified?


    Thanks in advance

    Regards

    • This topic was modified 2 years, 8 months ago by gregfr. Reason: bad editor
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hook when user is logged in’ is closed to new replies.