Is it possible to add a token to any wp-option that could be replaced on get where the token being defined in a plugin’s option or the configure file?
E.g. http://[[[env_token]]].sitename.com/some-page.html => http://staging.sitename.com/some-page.html or http://dev.sitename/some-page.html or http://www.sitename.com
To be more specific I am managing a Wordpress instance inside a development life cycle where I often copy production data down to staging and development servers. Often the options tables are unmanageable and have changed since the last dump. However, after analyzing what the most frequent changes are between servers I noticed it is the environmental specific tokens like dev and staging.
I am a little concerned with running a string replace on every option get, but I am making use of page, data, and object caching.