AI Summary
Description
The wpforms_pro_admin_entries_printpreview_print_html_head
action runs in the <head>
of the Entry Print Preview page. Use it to inject a stylesheet or small inline styles/scripts that affect the printed entry.
This hook prints inside the HTML <head>
of the print view. Echo tags or links only. If you need to toggle compact or other modes, target the classes applied in the preview markup.
parameter | type | description |
---|---|---|
$entry | object | The entry object being printed. |
$form_data | array | Form data and settings for the entry. |
Source
wpforms\pro\templates\admin\entry-print\head.php
Example
// Add a tiny style tweak to the Entry Print Preview head.
add_action( 'wpforms_pro_admin_entries_printpreview_print_html_head', function ( $entry, $form_data ) {
echo '<style>
#print .page-title h1 { font-size: 22px; }
#print .fields { border: 8px solid #eee; }
</style>';
}, 10, 2 );