Description
The gravityflow_approval_note_label_workflow_detail filter can be used to modify the ‘Note’ label on the Approval step.
Parameters
Parameter | Type | Details |
---|---|---|
$note_label | String | The label to be overridden. |
$step | Gravity_Flow_Step | The current step. |
Example
Update the note label to a custom text.
1 2 3 4 | add_filter( 'gravityflow_approval_note_label_workflow_detail' , 'filter_approval_note_label_workflow_detail' , 10, 2 ); function filter_approval_note_label_workflow_detail( $approve_label , $step ) { return 'Your new note label' ; } |
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?
Since
This filter was added in version 1.8.1