Called from load_post_webhook.
    This builds a generic WPAPILoader and uses its load_post() to insert/update content for the post.

    :param wp_post_id: the WordPress post ID to load
    :return: None

def load_post(wp_post_id):
    """
    Called from load_post_webhook.
    This builds a generic WPAPILoader and uses its load_post() to insert/update content for the post.

    :param wp_post_id: the WordPress post ID to load
    :return: None
    """

    # wait a bit to give WordPress REST API a chance to catch up
    time.sleep(1)

    loader = WPAPILoader()
    post = loader.load_post(wp_post_id)

    if post:
        logger.info("Successfully loaded post wp_post_id=%s, pk=%s", wp_post_id, post.pk)
    else:
        logger.warning("Error loading post wp_post_id=%s", wp_post_id)