Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #439148

    Hello,
    I am writing a booking plugin for my site and I am using contact form for data input.
    I wrote a function for storing this input data into custom table so it could be easily seen in admin panel.

    Question is: how can I call this function?
    Is there some action/filter that I could use? For example, after form submission?
    I am sure your framework is very well designed.

    Also how can I call smooth scrolling from JS?
    With simple
    <a href="#section-id">Link</a>
    it works without problems, but doesn’t work when called like
    window.location.hash = 'section-id'

    Nevermind about JS, studied a little bit, found out that jquery doesnt select dynamiclly created content that way. Did a workaround.
    Anyway, filter the submission moment for my custom f-tion? Where?

    #439388
    #439393

    Thanks, Seconds ago found that same post. Now I realized I have the same problem that he had – process only specific form, not all of them.
    How to add filter it only on this form and ignore all others?

    #439398

    You could invoke global $post and make a conditional with the ID of the post being shown, assuming you’re using a form per page, if that’s not the case you could maybe use some unique value stored in the $this->form_params paramater that gets passed with the hook.

    Regards,
    Josue

    #439419

    Cool, works like a charm. I am working with WP API just for few days. Don’t know all the functions and classes yet.
    Anyway. Thank You, Josue for Your help!
    Good luck to You and team with next Enfold version development!

    Solved!

    #439421

    Glad to help Edgars, good luck to you too!

    Cheers!
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.