Title: New Ticket Button URL
Last modified: May 18, 2021

---

# New Ticket Button URL

 *  Resolved [johnymajors](https://wordpress.org/support/users/johnymajors/)
 * (@johnymajors)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/new-ticket-button-url/)
 * Our website was working fine untill recently when we gained a random but somewhat
   annoying problem.
 * When our staff log onto our site and go to the “My Tickets” page and they click
   the “Open a Ticket” button, nothing happens. (the log out button is working fine)
 * If they go into the backend of the system, they can navigate to the tickets area
   and add new tickets, edit them, assign them and close them etc …. but obviously
   this is a little long winded.
 * I tried doing a load of different things suggested on other posts but to no avail.
 * But what i did notice is that if i go into a browser and inspect the button element
   in developers mode, the url is listed as *href //******.co.uk/joblist* which 
   means it is just recirculating evrytime you hit the new ticket button.
 * If i add */wp-admin/post-new.php? post-type=ticket””* to the end of the URL it
   works as it should (but obviously this is just temporary in the developers mode)
 * So my question is … How do i add the additional code the URL to get it working
   again?
    -  This topic was modified 5 years, 1 month ago by [johnymajors](https://wordpress.org/support/users/johnymajors/).
    -  This topic was modified 5 years, 1 month ago by [johnymajors](https://wordpress.org/support/users/johnymajors/).
    -  This topic was modified 5 years, 1 month ago by [johnymajors](https://wordpress.org/support/users/johnymajors/).

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

 *  Plugin Author [Yeison Baron](https://wordpress.org/support/users/yeisonbp/)
 * (@yeisonbp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/new-ticket-button-url/#post-14454370)
 * Hi [@johnymajors](https://wordpress.org/support/users/johnymajors/),
 * In order to get things clear and smooth, do you want your agents to submit tickets
   in the front end? If so, add the following to your functions.php:
 * add_filter( ‘wpas_agent_submit_front_end’, ‘__return_true’ );
 * Let me know if this is what you need.
 * Regards.
 *  Thread Starter [johnymajors](https://wordpress.org/support/users/johnymajors/)
 * (@johnymajors)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/new-ticket-button-url/#post-14458012)
 * Hi [@yeisonbp](https://wordpress.org/support/users/yeisonbp/)
 * Just to confirm …. Open new tickets from the front end.
 * They used to log in and the front end page would come up with “Add Ticket” and“
   Logout” Buttons on the page.
    There they would click the “Add Ticket” button 
   and add the job. But it stopped working.
 * Do i edit the functions.php in the /wp-includes
 * or in wp-content/plugins/awesome-support/includes
 * or somewhere else??
 * Cheers
 *  Plugin Author [Yeison Baron](https://wordpress.org/support/users/yeisonbp/)
 * (@yeisonbp)
 * [5 years ago](https://wordpress.org/support/topic/new-ticket-button-url/#post-14473720)
 * Hi [@johnymajors](https://wordpress.org/support/users/johnymajors/),
 * to add the code, go to appearence – theme editor, choose the theme you are using
   and find the functions.php file from your theme. You can add the code there.
 * Regards.
 *  Plugin Author [Yeison Baron](https://wordpress.org/support/users/yeisonbp/)
 * (@yeisonbp)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/new-ticket-button-url/#post-14605573)
 * Hi,
 * I’m marking this as solved, but if you have more questions, you can let us know.

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

The topic ‘New Ticket Button URL’ 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, 11 months ago](https://wordpress.org/support/topic/new-ticket-button-url/#post-14605573)
 * Status: resolved