• Resolved pzh20

    (@pzh20)


    Can you explain what is the difference between ‘acfe/form/submit_post/form=my_form’ and ‘acfe/form/submit_form/form=my_form’ please?

    Regards

    Pete

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    The acfe/form/submit_post/form=my_form hook (see documentation) is executed on the “Post Action” when the form named “my_form” is submitted. It provides information about the post that has been created/updated with the first parameter $post_id and the second parameter $args.

    The acfe/form/submit_form/form=my_form hook (see documentation) is executed after all Actions are submitted (if any) when the form named “my_form” is submitted. It doesn’t provide any specific information other than the $form settings, since it is not tied to any action. You can use this hook on any form with or without any action, it will be always executed.

    Hope it helps!

    Have a nice day!

    Regards.

    Thread Starter pzh20

    (@pzh20)

    Many thanks

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