8.3.Modify an entry

8.3.Modify an entry

Modifies an existing entry in the Site IP Disallow List. You can update the IP address, the description, or both.

wp admintools ipdisallow modify <id> [--ip=<ip>] [--description=<description>]

<id>

The numeric ID of the entry to modify.

--ip=<ip>

The new IP address, range, or CIDR notation.

--description=<description>

The new description for this entry.

Examples

Change the IP address of entry #1:

wp admintools ipdisallow modify 1 --ip=10.0.0.1

Update both IP and description:

wp admintools ipdisallow modify 1 --ip=10.0.0.1 --description="Bad actor"

Sample output

Success: Disallow List entry #1 updated.