__( 'Slack', 'advanced-form-integration' ), 'tasks' => array( 'sendmsg' => __( 'Send Channel Message', 'advanced-form-integration' ) ) ); return $actions; } add_action( 'adfoin_action_fields', 'adfoin_slack_action_fields' ); function adfoin_slack_action_fields() { ?> $message ); $args = array( 'timeout' => 30, 'headers' => array( 'Content-Type' => 'application/json' ), 'body' => wp_json_encode( $data ) ); $return = wp_remote_post( $url, $args ); adfoin_add_to_log( $return, $url, $args, $record ); } return; }