Description
The gravityflow_print_entry_header action lets you add custom details on the top of each entry when printing entries.
Parameters
Examples
Inject date and time of the entry at the top of print page
add_action ('gravityflow_print_entry_header', 'sh_gravityflow_print_entry_header', 10, 2);
function sh_gravityflow_print_entry_header ($form, $entry){
echo "<h2>Date and Time: " . $entry['date_created'] . "</h2>";
}
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?