gravityflow_title_entry_detail

Description

The gravityflow_title_entry_detail can be used to customize the title of the workflow details page.

Parameters

ParameterTypeDetails
$titleStringTitle of the entry details page.
$formFormCurrent form
$entryEntryThe current entry.

Examples

add_filter( 'gravityflow_title_entry_detail', 'sh_gravityflow_title_entry_detail', 10, 3 );
    function sh_gravityflow_title_entry_detail ($title, $form, $entry) {
		// Custom title for workflow details page for form id 34
        if ($form['id'] == 34)
		{$title = 'This is a custom title';}
		return $title;
    }

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?