Adding custom user information

This topic contains 2 replies, has 2 voices, and was last updated by  Stephen Harris 8 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24887

    Hi,

    I have tried adding custom user information to the database like here

    however the $booking_id keeps missing. Giving me the following problem:

    Missing argument 2 for my_form_saved_callback() in ..\functions.php on line 320.
    

    Which then off course doesn’t work.

    I have tried debugging, but I’m not able to find a solution.

    Paksha Thullner
    #24888

    Hi,

    I found the solution. The problem is that add_action has only 1 argument by default. So I changed it to 2.

    add_action( ‘eventorganiser_booking_form_saved’, ‘my_form_saved_callback’, 10, 2 );

    Paksha Thullner
    #24900

    Hi Paksha,

    I’m glad you’ve been able to resolve this one. I’ll update the linked-to thread.

    Stephen Harris
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.