• Resolved s.p.buckle

    (@spbuckle)


    I have some custom hooks to crop and upload images in my form which works fine when you submit a post.. but ‘saving your progress’ doesn’t run these hooks for some reason even though they are crucial to the form.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @spbuckle,

    Have you checked theme or plugin conflict? I think there might be a internal issue. Let me know the updates.

    Thanks

    Thread Starter s.p.buckle

    (@spbuckle)

    Just to confirm,

    Should custom hooks run when the form is saved as draft.. just so I know it’s something broken in my own code?

    Thread Starter s.p.buckle

    (@spbuckle)

    Also,

    Just to clarify.. I have the function run on the following:

    wpuf_add_post_after_insert
    wpuf_edit_post_after_update

    add_action( 'wpuf_add_post_after_insert', 'update_logo_hook' );
    add_action( 'wpuf_edit_post_after_update', 'update_logo_hook' );

    But i don’t think it’s running my function when you click the #wpuf-post-draft button to save progress.

    Hello @spbuckle,

    The above action hooks only running after submitting a post using submit button, not the draft button which you enable from the form settings.

    Thanks for your understanding.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Saving changes to a draft doesn’t run my hooks’ is closed to new replies.