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.