Is there any plugin that can update the wordpress database, specifically the wp_posts table or any other custom table in the database created by other plugins which has absolute url's of images and other assets?
So for example I have an image in a post:
<img src="http://old-domain.com/wp-content/uploads/images/img.png" />
How do I update it when moving to new-domain.com?
And also I have created a plugin that does save absolute URL's on a custom table. Should I also provide the functionality to update those URL's? I'm currently using the
content_url() method which returns an absolute URL for the assets that the plugin is saving. Is there any way of modifying this so it uses relative paths so there will be no need for a migrate functionality if ever? Thanks in advance!