I'm trying to update GUID on a attachment. But somehow it's not working neither it's throwing any error.
$my_post = [ 'ID' => 45, 'guid' => 'https://example.com/foo.png' ]; wp_update_post( $my_post );
WordPress does not seem to update the GUID.
But if we try update other values such as
post_parent, it works fine.
Why is that?