Wp config has

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
NAME

  wp config has

DESCRIPTION

  Checks whether a specific constant or variable exists in the wp-config.php file.

SYNOPSIS

  wp config has <name> [--type=<type>]

OPTIONS

  <name>
    Name of the wp-config.php constant or variable.

  [--type=<type>]
    Type of the config value to set. Defaults to 'all'.
    ---
    default: all
    options:
      - constant
      - variable
      - all
    ---

EXAMPLES

    # Check whether the DB_PASSWORD constant exists in the wp-config.php file.
    $ wp config has DB_PASSWORD