Redirect After Workflow Submit

Description

The action filter is executed after workflow submit.

Use this filter to redirect user to a custom url.

Usage

add_filter( 'owf_redirect_after_workflow_submit', 'redirect_to_custom_url', 10, 2 );

Parameters

  • $link – incoming link
  • $post_id – ID of the post.

Example – redirect to admin home page

add_filter( 'owf_redirect_after_workflow_submit', 'redirect_to_custom_url', 10, 2 );

function redirect_to_custom_url( $link, $post_id ) {
  $link = admin_url() . "index.php";
  return $link;
}

Source Code

The filter is located in class-ow-process-flow.php