gravityflow_print_entry_header

Use this action to add custom text on the top of each entry when printing entries.

Parameters

$form Form Object
Current form.
Current Entry object

Examples

Example 1

The example injects 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 should be placed in the functions.php file of your active theme.