Description
The gravityflow_page_title_print_entry filter allows developers to customize the page title in the browser tab when printing Gravity Flow entries. This filter is applied in the print entries page header and enables you to modify the title based on the number of printed entries.
Usage
add_filter( 'gravityflow_page_title_print_entry', 'your_callback_function', 10, 2 );
Parameters
| Parameter | Type | Description |
|---|---|---|
| $title | string | The current page title. Defaults to “Bulk Print” for multiple entries or “Entry # X” for single entries. |
| $entry_count | integer | The number of entries being printed. |
Examples
Customize the print page title.
add_filter( 'gravityflow_page_title_print_entry', function( $title, $entry_count ) {
if ( $entry_count > 1 ) {
return 'Workflow Entries - ' . $entry_count . ' items';
} else {
return 'Workflow Entry Details';
}
}, 10, 2 );
Add a company name to the title.
add_filter( 'gravityflow_page_title_print_entry', function( $title, $entry_count ) {
return $title . ' - Your Company Name';
}, 10, 2 );

Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This filter is located in includes/pages/class-print-entries.php