Release Announcement: WPForms Views v3.4.1

We are pleased to announce the release of WPForms Views v3.4.1, a focused update that enhances front-end flexibility and developer control when working with views that display WPForms entries.

What’s New in Version 3.4.1

1 . view-empty Class for Views with No Entries

In this release, WPForms Views now automatically adds a view-empty class to the main wpforms-view wrapper when no entries are returned. This makes it easy to apply custom styling to empty states using your theme’s CSS.

Example HTML Output:

<div class="wpforms-view wpforms-view-type-table view-theme-default wpforms-view-23 views-empty">

You can use this class to:

  • Show a custom message or image for empty results
  • Adjust spacing or layout when there are no entries
  • Hide unnecessary interface elements like filters or pagination

2 . New Filter: wpf_views/view_wrapper_classes


We have introduced a new filter hook called wpf_views/view_wrapper_classes, which allows developers to modify or append CSS classes on the view container dynamically. This enables deeper customization and makes the plugin easier to integrate with frameworks or complex design systems.

Example Usage:

add_filter( 'wpf_views/view_wrapper_classes', function( $classes, $view_id, $settings, $entries ) {
    if ( $view_id == '101' ) {
        $classes[] = 'custom-view-wrapper';
    }
    return $classes;
}, 10, 4 );

This hook provides access to:

  • The current view ID
  • View settings object
  • The list of entries being rendered

You can update to version 3.4.1 from your WordPress dashboard or download the latest version from your account page.

Similar Posts