I am not the professional WP developer, but I have a task to create the plugin in order to search and replace some strings in WPDB.
I already done the part with initializing plugin, the one that I can not find is how to perform a search-replace throughout the whole WP DB.
The client's WP site has a WooCommerce on it and is actually a multisite setup, so I need to cycle through every table and search for occurrences and replace them with custom string.
Also, there is WP CLI installed, but I'm not sure it'll work on a remote server, since all WP there is running inside some containers (not really familiar with remote config).
So, the question is: is it possible to make a search-replace query on WP programmatically without any other plugins (I already know about "Better search replace" and other ones available, but it's not the option).
Kind regards,