Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function format_post_data( $post_data ) {
- $payload = json_decode( file_get_contents( 'php://input' ) );
- if ( ! is_object( $payload ) ) {
- return $post_data;
- }
- $post_data['contact_id'] = $payload->entity->id;
- return $post_data;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement