Anonymous

My feedback

  1. 11 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      Anonymous commented  · 

      Here's another awesome way to do it (disclaimer: partially tested so far, but promising):

      add_filter( 'wp_insert_post_data', 'post_insert_handler', '99', 2 );
      function post_insert_handler($data,$postarr) {
      if (strpos($data["post_type"],"product")===0) $data["post_status"] = "draft";
      return $data;
      }

      Anonymous supported this idea  · 
    • 11 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        1 comment  ·  WooCommerce » Category - Extension Ideas  ·  Flag idea as inappropriate…  ·  Admin →
        Anonymous supported this idea  · 

      Feedback and Knowledge Base