PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Post status private on multiple forms

  1. dochara
    Member

    I know this can be done using gform_post_data, but the examples given suggest excluding all forms except the one specified. I assume this will also work by specifying ids to run the filter on by including ids, like so:

    if($form["id"] = 2 || $form["id"] = 3 || $form["id"] = 4 ) {
    $post_data["post_status"] = "private";
    return $post_data;
        }
    else {
    return $post_data;
     }
    Posted 12 years ago on Wednesday May 23, 2012 | Permalink
  2. David Peralty

    I don't see why it wouldn't work. Give it a try and let us know if you run into any problems.

    Posted 12 years ago on Wednesday May 23, 2012 | Permalink