• Resolved pavel21

    (@pavel21)


    Hi! Is it possible to do that thing – when user create ticket, ticket become published already, not as draft? in free version I meen

    • This topic was modified 5 years, 5 months ago by pavel21.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mayeenul Islam

    (@wzislam)

    Hello @pavel21 Thank you for using NanoSupport.

    Hi! Is it possible to do that thing – when user create ticket, ticket become published already, not as draft? in free version I meen

    Yes, indeed. Actually the default behavior is ‘private’ or ‘pending’ (not draft).

    You can do that easily with the current version (it’s always free) of the plugin. You have to add the following line in your theme’s functions.php:

    add_filter('ns_ticket_data', 'mytheme_nanosupport_alter_ticket_status', 10 );
    function mytheme_nanosupport_alter_ticket_status($ticket_data) {
    	$ticket_data['post_status'] = 'private';
    	return $ticket_data;
    }

    The documentation is here: https://github.com/nanodesigns/nanosupport/blob/v0.6.0/includes/ns-functions.php#L356-L366

    Would love to have a 5-star review from you if the plugin satisfied your need.

    Thread Starter pavel21

    (@pavel21)

    It’s works! Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Publishing created tickets’ is closed to new replies.