Wp config shuffle-salts

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

  wp config shuffle-salts


  Refreshes the salts defined in the wp-config.php file.


  wp config shuffle-salts [<keys>...] [--force] [--insecure]


    One ore more keys to shuffle. If none are provided, this falls back to the default WordPress Core salt keys.

    If an unknown key is requested to be shuffled, add it instead of throwing a warning.

    Retry API download without certificate validation if TLS handshake fails. Note: This makes the request vulnerable to a MITM attack.


    # Get new salts for your wp-config.php file
    $ wp config shuffle-salts
    Success: Shuffled the salt keys.

    # Add a cache key salt to the wp-config.php file
    $ wp config shuffle-salts WP_CACHE_KEY_SALT --force