Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

frm_rich_text_emails

Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.

Use this hook for cases when a plain textarea may be preferred over rich text.

Usage

add_filter( 'frm_rich_text_emails', '__return_false' );

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

Parameters

  • $rich_text_emails (boolean)
  • $args (array)

Examples

Disable rich text email

Use this example to disable the rich text email in all forms.

add_filter( 'frm_rich_text_emails', '__return_false' );

Disable rich text email for specific action

add_filter( 'frm_rich_text_emails', 'disable_rich_text_email_for_specific_action', 10, 2 );
function disable_rich_text_email_for_specific_action( $rich_text_emails, $args ) {
$target_action_id = 2381; //Replace 2381 with your email action ID
if ( $target_action_id === $args['form_action']->ID ) {
$rich_text_emails = false;
}
return $rich_text_emails;
}

Learn more on how to find the email action ID.

Disable rich text email for specific form

add_filter( 'frm_rich_text_emails', 'disable_rich_text_email_for_specific_form', 10, 2);
function disable_rich_text_email_for_specific_form( $rich_text_emails, $args ) {
$target_form_id = 338; //Replace 338 with your form ID
if ( $target_form_id === (int) $args['form']->id ) {
$rich_text_emails = false;
}
return $rich_text_emails;
}
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2025 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Complete your purchase
    Special offer unlocked.
    Get 55% OFF!
    Complete Purchase
    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms