gravityflow_approve_label_workflow_detail

Description

The gravityflow_approve_label_workflow_detail filter can be used to modify the ‘Approve’ label on the Approval step.

Parameters

ParameterTypeDetails
$approve_labelStringThe label to be overridden
$stepGravity_Flow_StepThe current step.

Example

Provide a custom label for the approval button

1
2
3
4
add_filter( 'gravityflow_approve_label_workflow_detail', 'filter_approve_label_workflow_detail', 10, 2 );
function filter_approve_label_workflow_detail( $approve_label, $step ) {
   return 'Your new 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.3.1.3.