https://wphelpscout.com//developer.helpscout.net/help-desk-api/conversations/create/ “The ‘autoReply’ request parameter enables auto replies to be sent when a conversation is created via the API. When ‘autoReply’ is set to true, an auto reply will be sent as long as there is at least one ‘customer’ thread in the conversation.”
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function filter_conversation_creation_fields( $fields = array() ) { | |
$fields['threads'][0]['autoReply'] = 'true'; | |
return $fields; | |
} | |
add_filter( 'hsd_create_conversation_fields', 'filter_conversation_creation_fields' ); |