Support Log in

21. Custom Notification Channels

Developer Guide
Prefer video? Watch the Fillin Forge tutorials 9 short guides covering every feature Watch

Fillin Forge sends email and generic webhooks in the Free plugin, and Slack, Discord, Telegram and WhatsApp notifications in Fillin Forge Pro. For any other channel, send the message yourself from the submission event.

Example: a chat channel with an incoming webhook

Most chat tools accept a JSON message at a URL. Replace the URL with the one your tool gives you:

php
add_action( 'formforge/submission_created', function ( $submission_id, $payload ) {
    $text = sprintf( 'New submission #%d on "%s"', $submission_id, $payload['form_title'] );
    wp_remote_post( 'https://example.com/your-channel-webhook', [
        'headers' => [ 'Content-Type' => 'application/json' ],
        'body'    => wp_json_encode( [ 'text' => $text ] ),
        'timeout' => 10,
    ] );
}, 10, 2 );

If you only need to call another service, the generic webhook in the form settings may be enough without any code.

Forge AI Assistant Online

Hi! I'm the Fillin Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs