• Resolved pipoulito

    (@pipoulito)


    Hi,

    Is it possible that what i do in the functions:

    function handle_form_submission()
    function generate_post_from_form_submission()

    be also used when i create the same post with the backend ?
    or how can i do please in the easier way ?
    thanks a lot

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author fabianlindfors

    (@fabianlindfors)

    Hi!

    I’m not sure I understand. What do you mean creating post with the backend?

    Thanks for getting in touch!

    Thread Starter pipoulito

    (@pipoulito)

    sorry for my bad english… I mean if i use your hook functions, what will happen if i create a post directly from the wp admin and not using my frontend ACF form, will they be ignored ?
    Because as i need to be able to post from the admin or from frontend acform, i would like that what i do in my hook (i just send a email when creating a new post) be executed in the both case.
    thanks

    Thread Starter pipoulito

    (@pipoulito)

    is it better to use pre_savepost in my case ?

    Plugin Author fabianlindfors

    (@fabianlindfors)

    I see! It might be better to use the save_post hook if you want to know both when a post is created manually through the WordPress admin and through the form. Documentation for the hook is available here: https://developer.ww.wp.xz.cn/reference/hooks/save_post/.

    Thread Starter pipoulito

    (@pipoulito)

    ok thanks

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Backend submit’ is closed to new replies.