Description
The gravityflow_title_entry_detail can be used to customize the title of the workflow details page.
Parameters
Parameter | Type | Details |
---|---|---|
$title | String | Title of the entry details page. |
$form | Form | Current form |
$entry | Entry | The 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?