gravityflow_reject_label_workflow_detail

Description

The gravityflow_reject_label_workflow_detail filter can be used to modify the ‘Reject’ label on the Approval step.

Parameters

ParameterTypeDetails
$reject_labelStringThe label to be overridden.
$stepStepThe current step.

Examples

Customize the reject button label for all steps

add_filter( 'gravityflow_reject_label_workflow_detail', 'filter_reject_label_workflow_detail', 10, 2 );
function filter_reject_label_workflow_detail( $reject_label, $step ) {
   return 'Deny';
}

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?