search-replace-command icon indicating copy to clipboard operation
search-replace-command copied to clipboard

Searches/replaces strings in the database.

Results 40 search-replace-command issues
Sort by recently updated
recently updated
newest added

I often want to apply the `wp search-replace` command to only one **single database record**. (Sometimes for testing, sometimes, because I know, that I only have to replace data in...

command:search-replace

## Bug Report **Describe the current, buggy behavior** Aloha, although the docs describe a `--no-recurse-objects` flag: > [--recurse-objects] Enable recursing into objects to replace strings. Defaults to true; pass –no-recurse-objects...

hi guys, I've successfully used: wp search-replace "https://youtube.com/ufikekwlf" "https://youtube.com/ufjkjgk6lfd" wp_postmeta meta_value --skip-columns=meta_key It's a repeatable_fields in my post under "video player", It's also a serialized data, in the post I...

## Feature Request - [x] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/). **Describe your use case and the problem you are facing** I currently use search-replace for batch editing content (when...

wontfix

I have some contributors that have a habit of treating post titles as sentences, adding periods at the end of them. I was trying to use wp-cli to strip the...

state:unconfirmed

We should have a more concise version of this in the command description: > One of the keys in each database table has to be marked as the primary key,...

command:search-replace
scope:documentation
good-first-issue

Example: PHP Fatal error: Uncaught Error: Cannot access protected property WCML_Currency_Switcher_Template::$custom_filters in phar:///usr/local/bin/wp/vendor/wp-cli/search-replace-command/src/WP_CLI/SearchReplacer.php:105 Stack trace: #0 phar:///usr/local/bin/wp/vendor/wp-cli/search-replace-command/src/WP_CLI/SearchReplacer.php(92): WP_CLI\SearchReplacer->run_recursively(Object(WCML_Currency_Switcher_Template), false, 2, Array)

bug
command:search-replace

I use: `wp search-replace "--old-word" "new word"` Error: `unknown --old-word parameter`

command:search-replace

I think, the search-replace command do not work properly. Post content code contains: `some text anchor text some text` This wp-cli command found only 14 posts: `search-replace ']+)>([^

The framework package `wp-cli/wp-cli` still contains the unit tests for the `WP_CLI\SearchReplacer` class: https://github.com/wp-cli/wp-cli/blob/v1.5.1/tests/test-search-replace.php These need to be brought over to this package instead.

scope:testing
good-first-issue