Description
The gravityflow_revert_label_workflow_detail filter can be used to modify the ‘Revert’ label on the Approval step.
Parameters
Examples
Modify the revert label for a specific step
add_filter( 'gravityflow_revert_label_workflow_detail', 'filter_revert_label_workflow_detail', 10, 2 );
function filter_revert_label_workflow_detail( $revert_label, $step ) {
if ( $step->id() == '42' ) {
$revert_label = 'Make Revisions;
}
return $revert_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?