Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpmudev-sls/1b3f9244577afdbbed007b1545e1d51c to your computer and use it in GitHub Desktop.
Save wpmudev-sls/1b3f9244577afdbbed007b1545e1d51c to your computer and use it in GitHub Desktop.
[Forminator Pro] - Show empty field labels in PDF
<?php
/**
* Plugin Name: [Forminator Pro] Show empty field labels in PDF
* Description: Show empty field labels in PDF.
* Author: Prashant @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
add_filter( 'forminator_pdf_hide_empty_fields', 'wpmudev_allow_empty_fields_pdf', 10, 5 );
function wpmudev_allow_empty_fields_pdf( $hide_empty, $pdf_field, $form_id, $pdf_settings, $entry ) {
return false; // false means empty fields will be included too.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment