... * wp adminkeep feature disable ... * Switch features on or off. Their settings are kept. * wp adminkeep feature get * A feature's settings: key, value, type, accepted values. * wp adminkeep feature set key=value... * Change settings. Everything not named is kept. * * wp adminkeep comments count [--approved] [--woo] * How many comments `purge` would delete. Prints a number. * wp adminkeep comments purge [--approved] [--woo] [--yes] * Delete them for good, in batches. Spam and trash by default. * * wp adminkeep css get * Print the site's Custom CSS, and nothing else. * wp adminkeep css set [] [--yes] * Replace it from a file, or from standard input. * * wp adminkeep smtp get * SMTP settings and where each value comes from. * wp adminkeep smtp set --host= --port= ... * Change SMTP settings. Flags: `wp help adminkeep smtp set`. * wp adminkeep smtp test [--log] * Send a test email. Shows the server's reply on failure. * * ## HOW TO FIND YOUR WAY * * Feature ids come from `wp adminkeep feature list`. * A feature's setting keys, their types and the values each accepts * come from `wp adminkeep feature get `. * The `smtp` and `custom_css` features are switched on with * `feature enable`, and configured with the `smtp` and `css` groups. * * ## FOR SCRIPTS AND AGENTS * * * `feature list`, `feature get` and `smtp get` take `--format=json` * (also csv, yaml, table). * * Exit code 0 means the change was made. Any mistake (unknown id, * unknown key, wrong type of value) exits 1, names the valid * choices, and writes nothing. * * `comments purge` always asks first, and `css set` asks before * clearing stored CSS. Pass `--yes` to skip the question. * * The SMTP password is never printed. Set it with `--password-stdin` * so it stays out of the shell history. A setting fixed by an * ADMINKEEP_SMTP_* constant in wp-config.php is refused. * * A change takes effect from the next request. On multisite, pick * the site with `--url=`. * * ## EXAMPLES * * # See every feature and whether it is on, as JSON. * $ wp adminkeep feature list --format=json * * # Turn comments off, then clear out spam and trash. * $ wp adminkeep feature enable disable_comments * $ wp adminkeep comments purge --yes * * # Manual ordering for posts and pages. * $ wp adminkeep feature enable order * $ wp adminkeep feature set order post_types=post,page * * # Configure SMTP, then prove it works. * $ wp adminkeep smtp set --host=smtp.example.com --port=587 * $ printf %s "$SMTP_PASSWORD" | wp adminkeep smtp set --password-stdin * $ wp adminkeep feature enable smtp * $ wp adminkeep smtp test you@example.com */ class AdminkeepNamespace extends \WP_CLI\Dispatcher\CommandNamespace { }