Home / Admin / Display Non-Input Fields in Notifications
Duplicate Snippet

Embed Snippet on Your Site

Display Non-Input Fields in Notifications

Displays all non-input fields in email notifications. Non-input fields are HTML fields, Page Breaks, Section Dividers, and Content fields.

100+
Code Preview
php
<?php
/**
 * Filters non-input field types to include in {all_fields} output
 *
 * @link   https://wpforms.com/developers/include-page-break-section-divider-and-html-fields-in-notifications/
 * 
 * For support, please visit: https://www.facebook.com/groups/wpformsvip
 */
 
function wpf_dev_email_display_other_fields( $fields ) {
 
    return array( 'divider', 'pagebreak', 'html', 'content' );
}
 
add_filter( 'wpforms_email_display_other_fields', 'wpf_dev_email_display_other_fields', 10, 1 );

Comments

Add a Comment