-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlocal-config-sample.php
More file actions
76 lines (69 loc) · 2.27 KB
/
local-config-sample.php
File metadata and controls
76 lines (69 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php declare(strict_types=1);
/*
* This is a sample local-config.php file
*
* You may include settings here that you only want
* enabled on your local development checkouts
*
*/
/**
* Lando local development
*
* If you're not using Lando, you'll need to set these values manually.
*/
if ( getenv( 'LANDO_INFO' ) ) {
$lando_info = json_decode( getenv( 'LANDO_INFO' ) );
$database_config = $lando_info->database;
define( 'DB_NAME', $database_config->creds->database );
define( 'DB_USER', $database_config->creds->user );
define( 'DB_PASSWORD', $database_config->creds->password );
define( 'DB_HOST', $database_config->internal_connection->host );
}
/**
* Multisite Config
*
* Note that there are already multisite config values defined in wp-config-environment.php.
* These are the only values that need to be overridden to fully enable multisite.
*/
// define( 'WP_ALLOW_MULTISITE', true );
// define( 'MULTISITE', true );
// define( 'SUBDOMAIN_INSTALL', false );
// define( 'DOMAIN_CURRENT_SITE', 'moose.lndo.site' );
/**
* Set the current environment type. Accepted values:
* - production (default)
* - staging
* - development
* - local
*
* Note, if you are using Local, you will need to define these here.
*
* @link https://make.wordpress.org/core/2020/07/24/new-wp_get_environment_type-function-in-wordpress-5-5/
*/
if ( ! defined( 'WP_ENVIRONMENT_TYPE' ) ) {
define( 'WP_ENVIRONMENT_TYPE', 'local' );
}
/**
* Set the development mode for WordPress.
* Options are 'all', 'core', 'plugin', 'theme', or ''.
* 'all' allows us to bypass pattern caching for local development.
*
* @link https://make.wordpress.org/core/2023/10/17/improvements-to-template-loading-in-wordpress-6-4/
* @link https://make.wordpress.org/core/2023/07/14/configuring-development-mode-in-6-3/
*/
define( 'WP_DEVELOPMENT_MODE', 'all' );
/*
* Glomar
*
* GLOMAR is a plugin that blocks the frontend of the site from public access.
* If you would like to disable the plugin locally, add the following to your local-config.php.
*/
define( 'TRIBE_GLOMAR', false );
/*
* ACF Integration
*
* If the constant is set to true, this will hide the ACF menu item. The ACF
* menu item is also hidden when wp_get_environment_type() function returns
* 'production'.
*/
define( 'HIDE_ACF_MENU', false );