Last active
April 2, 2024 14:24
-
-
Save wpmudev-sls/1b3f9244577afdbbed007b1545e1d51c to your computer and use it in GitHub Desktop.
[Forminator Pro] - Show empty field labels in PDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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