gravityflow_print_entry_footer

Description

The gravityflow_print_entry_footer action to add custom details on the bottom of each entry when printing entries.

Parameters

ParameterTypeDetails
$formFormThe current form.
$entryEntryThe current entry.

Examples

Inject date and time of the entry at the bottom of the print page

add_action ('gravityflow_print_entry_footer', 'sh_gravityflow_print_entry_footer', 10, 2);

function sh_gravityflow_print_entry_footer ($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?