Last active
September 18, 2024 05:39
-
-
Save wpmudev-sls/c3decfc3b72a373f611191d20ce7f94a to your computer and use it in GitHub Desktop.
[Forminator Pro] - Change logo size 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] Change logo size in PDF. | |
* Description: Change logo size in PDF. | |
* Author: Prashant @ WPMUDEV | |
* Task: SLS-6505 | |
* Author URI: https://premium.wpmudev.org | |
* License: GPLv2 or later | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
add_filter( | |
'forminator_pdf_basic_template_header_logo', | |
function ( $logo_html, $pdf_settings ) { | |
$logo_html = str_replace( 'height="60"', 'height="100"', $logo_html ); | |
return $logo_html; | |
}, | |
10, | |
2 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment