public static function regenerate_guid($new_post_id, $old_post_object)
 {
     delete_post_meta($new_post_id, '_podlove_guid');
     \Podlove\Custom_Guid::generate_guid_for_episodes($new_post_id, get_post($new_post_id));
 }
 public function get_new_guid()
 {
     $post_id = $_REQUEST['post_id'];
     $post = get_post($post_id);
     $guid = \Podlove\Custom_Guid::guid_for_post($post);
     self::respond_with_json(array('guid' => $guid));
 }