title: How can I save custom post type details in wordpress 3.9.3 using 'save_post' hook?
body: <p>I've created a custom post type 'promo-services' and added some custom meta_boxes, but i'm not able to save their values using 'add_action('save_post',);' it works only once when i click on add new custom post button but when I click on publish it doesn't work.</p>
  
  <p>Here is the code:<br>
  <code></p>
  
  <pre><code>&lt;?php   
  function saveServiceDetails(){
      echo "&lt;pre&gt;";
          print_r($_POST);
      }
      add_action('save_post', 'saveServiceDetails');&lt;/code&gt;
  ?&gt;
  </code></pre>
  
  <p></code></p>