Title: Issue with a function
Last modified: August 28, 2020

---

# Issue with a function

 *  Resolved [deeperblue](https://wordpress.org/support/users/deeperblue/)
 * (@deeperblue)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-a-function/)
 * Hello there,
 * We are trying to trigger a function to run each time a front-end form is submitted
   and the post created. We first tried using the standard save_post hook which 
   didn’t seem to work, and now having checked your documentation we’ve tried wpuf_add_post_after_insert
   but that has the same issue. Please could you advise why this may not be triggering?
   The action code we are using is “add_action( ‘wpuf_add_post_after_insert’, ‘job_post_sms_notification’);”
   and the form can be found at [https://www.housemypet.com/post-a-job/](https://www.housemypet.com/post-a-job/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fissue-with-a-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/)
 * (@611shabnam)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-a-function/#post-13351098)
 * Hello [@deeperblue](https://wordpress.org/support/users/deeperblue/),
 * Can you please allow us to check the code you have written? It’s difficult to
   find any issue from custom code without actually checking the code.
 * regards,

Viewing 1 replies (of 1 total)

The topic ‘Issue with a function’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-frontend/assets/icon-256x256.gif?rev=3578622)
 * [User Frontend: AI Powered Frontend Posting, User Directory, Profile, Membership & User Registration](https://wordpress.org/plugins/wp-user-frontend/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-frontend/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-frontend/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-frontend/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-frontend/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-frontend/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/issue-with-a-function/#post-13351098)
 * Status: resolved