### [wpforms_pro_admin_entries_printpreview_print_html_head](https://wpforms.com/developers/wpforms_pro_admin_entries_printpreview_print_html_head/)

**Published:** September 30, 2025
**Author:** Umair Majeed

**Content:**

## Description

The `wpforms_pro_admin_entries_printpreview_print_html_head` action runs in the `` 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 `` 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.

parametertypedescription`$entry`objectThe entry object being printed.`$form_data`arrayForm 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 '';
}, 10, 2 );
```

## Reference Article

- [How to Set a Compact View as Default When Printing Entries](https://wpforms.com/developers/how-to-set-a-compact-print-view-as-default-when-printing-entries/)
- [Customizing PDF Styling When Printing an Entry](https://wpforms.com/developers/how-to-customize-printing-an-entry/)

**Categories:** Actions Hooks

---

