post_content['email_style'] ) ? $form_action->post_content['email_style'] : 'classic'; if ( ! empty( $form_action->post_content['plain_text'] ) ) { $selected_style = 'plain'; } $default_style = FrmEmailStylesController::get_default_email_style(); ?>
post_content['plain_text'] ); /** * @since 5.5.2 * * @param bool $rich_text_emails True by default unless plain text is selected. * @param array $args { * * @type stdClass $form * @type WP_Post $form_action * } */ $rich_text_emails = apply_filters( 'frm_rich_text_emails', $rich_text_emails, compact( 'form', 'form_action' ) ); if ( $rich_text_emails ) { $editor_args = array( 'textarea_name' => $this->get_field_name( 'email_message' ), 'textarea_rows' => 6, 'editor_class' => 'frm_not_email_message', ); wp_editor( $form_action->post_content['email_message'], $this->get_field_id( 'email_message' ), $editor_args ); } else { ?>