wp-cli / search-replace-command

Searches/replaces strings in the database.
MIT License
57 stars 45 forks source link

Pass current `$col` and `$primary_keys` down to the SearchReplacer #127

Closed drzraf closed 11 months ago

drzraf commented 4 years ago

Feature Request

Describe your use case and the problem you are facing

When using the (to-be-merged) callback feature, I'd like to access current information about the data being replaced (post-ID, meta-ID, ...)

Describe the solution you'd like

This is possible if run_recursively / run functions of the SearchReplacer are given the information about current $col and $primary_keys