Title: &#8220;Programmatically&#8221; create a ticket
Last modified: August 9, 2021

---

# “Programmatically” create a ticket

 *  Resolved [Ced](https://wordpress.org/support/users/cedriccharles/)
 * (@cedriccharles)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/programmatically-create-a-ticket/)
 * Hello there 🙂
 * First of all, thank you for this great plugin.
 * I’m using Ninja Forms and its add-on “Front-end posting” to create a post/custom
   post on form submission. I’ve tried to use this to create a ticket, but for some
   reason it doesn’t work properly. The ticket is created because I can see it in
   the front-end ticket list, but it doesn’t appear in the back-end. Could you tell
   me if something important needs to be set when creating a ticket? Right now, 
   I’ve map the ticket title, the ticket main content and the ticket post status(“
   publish”).
 * Thank you in advance,
    Cedric

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

 *  Plugin Author [Yeison Baron](https://wordpress.org/support/users/yeisonbp/)
 * (@yeisonbp)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/programmatically-create-a-ticket/#post-14773242)
 * Hi [@cedriccharles](https://wordpress.org/support/users/cedriccharles/),
 * Tickets use a custom type called ticket, so you would need to “map” those fields
   and create a ticket. We currently have an integration with Gravity Forms that
   you might be interested and does what you need (it does not work with Ninja Forms):
 * – [https://getawesomesupport.com/addons/gravity-forms/](https://getawesomesupport.com/addons/gravity-forms/)
 * If you are more interested in this, you can fill in the form below:
 * – [https://getawesomesupport.com/contact/](https://getawesomesupport.com/contact/)
 * Best Regards.
 *  Thread Starter [Ced](https://wordpress.org/support/users/cedriccharles/)
 * (@cedriccharles)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/programmatically-create-a-ticket/#post-14779092)
 * Hello [@yeisonbp](https://wordpress.org/support/users/yeisonbp/) 🙂 !
 * Thank you for your answer!
    I know that the CPT is “ticket”. As I told you, I’ve
   mapped the fields with the ticket fields, but for some reasons the ticket creation
   is not fully working. I can see the ticket in the front-end (where the user can
   see his tickets), but they do not appear in the WordPress back-end… Could you
   please tell me what are the required fields in order to make a ticket 100% functional?
   As I don’t see this in your documentation. Here this is not something related
   to the integration with a form plugin, but basic creation of ticket programmatically
   with PHP.
 * Kind regards,
    Cedric
 *  Plugin Author [Yeison Baron](https://wordpress.org/support/users/yeisonbp/)
 * (@yeisonbp)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/programmatically-create-a-ticket/#post-14797009)
 * Hi [@cedriccharles](https://wordpress.org/support/users/cedriccharles/),
 * The most I could do in these scenarios (as is this an specific request) is to
   let you know that the key fields needed to create a ticket are:
 * – Subject
    – Description – email address of the requester
 * You would need to check if you want this for existing users or if you need to
   create users automatically, you would need to create custom code.
 * Thanks.
 *  Plugin Author [Yeison Baron](https://wordpress.org/support/users/yeisonbp/)
 * (@yeisonbp)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/programmatically-create-a-ticket/#post-14885007)
 * Hi,
 * Marking this as solved. If you have any questions, you can let us know.
 * Thanks.

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

The topic ‘“Programmatically” create a ticket’ is closed to new replies.

 * ![](https://ps.w.org/awesome-support/assets/icon-256x256.png?rev=1849681)
 * [Awesome Support - WordPress HelpDesk & Support Plugin](https://wordpress.org/plugins/awesome-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/awesome-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-support/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-support/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Yeison Baron](https://wordpress.org/support/users/yeisonbp/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/programmatically-create-a-ticket/#post-14885007)
 * Status: resolved