12.3.Modify an exception

12.3.Modify an exception

Modifies an existing WAF exception. Only the fields you specify will be changed; all others remain unchanged.

wp admintools wafexceptions modify <id> [--at-url=<at_url>]    [--at-param=<at_param>] [--description=<description>]    [--at-type=<at_type>] [--at-value=<at_value>]    [--published=<published>]
id

The numeric ID of the exception to modify (required).

All other options are the same as the add command.

Examples

Change the parameter name:

wp admintools wafexceptions modify 1 --at-param=textarea

Unpublish an exception:

wp admintools wafexceptions modify 1 --published=0

Sample output

Success: WAF exception #1 updated.