verygoodplugins

Untitled

Sep 28th, 2020
801
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public function format_post_data( $post_data ) {
  2.  
  3.         $payload = json_decode( file_get_contents( 'php://input' ) );
  4.  
  5.         if ( ! is_object( $payload ) ) {
  6.             return $post_data;
  7.         }
  8.  
  9.         $post_data['contact_id'] = $payload->entity->id;
  10.  
  11.         return $post_data;
  12.  
  13.     }
  14.  
RAW Paste Data