formcierge_admin_notification_args
Filter

Since v1.0.0

Filters the arguments used to send the admin notification email. Use this to override the recipient, subject, template, or content for admin notifications on a per-form basis.

Parameters
$args array Email arguments (to, subject, content, template, headers, context).
$config array Notification configuration from the form builder.
$context array Notification context (form_id, submission, fields, entry_id).
add_filter( 'formcierge_admin_notification_args', function( $args, $config, $context ) {
    if ( $context['form_id'] === 42 ) {
        $args['to'] = ['special-team@example.com'];
    }
    return $args;
}, 10, 3 );