code: def load_wp_post(self, api_post, bulk_mode=True, post_categories=None, post_tags=None, post_media_attachments=None, posts=None):
          if post_categories is None:
              post_categories = {}
          if post_tags is None:
              post_tags = {}
          if post_media_attachments is None:
              post_media_attachments = {}
          if posts is None:
              posts = []
          author = None
          if api_post["author"].get("ID"):
              author = self.process_post_author(bulk_mode, api_post["author"])
          self.process_post_categories(bulk_mode, api_post, post_categories)
          self.process_post_tags(bulk_mode, api_post, post_tags)
          self.process_post_media_attachments(bulk_mode, api_post, post_media_attachments)
          existing_post = Post.objects.filter(site_id=self.site_id, wp_id=api_post["ID"]).first()
          if existing_post:
              self.process_existing_post(existing_post, api_post, author, post_categories, post_tags, post_media_attachments)
          else:
              self.process_new_post(bulk_mode, api_post, posts, author, post_categories, post_tags, post_media_attachments)
          if api_post["type"] == "post":
              self.sync_deleted_attachments(api_post)