Layer 7 Web, LLC » All Posts https://layer7web.com/discussion/frameworks/wordpress/config-setup/feed Sat, 23 Nov 2024 08:17:44 +0000 https://bbpress.org/?v=2.6.9 en-US https://layer7web.com/discussion/topic/wp-config-php-setup-for-development-and-production-environments/#post-2698 <![CDATA[wp-config.php setup for development and production environments.]]> https://layer7web.com/discussion/topic/wp-config-php-setup-for-development-and-production-environments/#post-2698 Mon, 20 Mar 2017 00:54:47 +0000 Layer7web If you are developing locally with the domain local.testing.dev where ‘local’ would determine the use of the local connections. You can change local to any string that exists in your development environment’s domain name that does not exist in the production environment.

]]>
https://layer7web.com/discussion/topic/debug-wp-config-php-settings/#post-2697 <![CDATA[Reply To: Debug wp-config.php Settings]]> https://layer7web.com/discussion/topic/debug-wp-config-php-settings/#post-2697 Mon, 20 Mar 2017 00:47:41 +0000 Layer7web To use the same config file for different environments I have been using this a lot these days:

Putting development connection settings in the ‘local’ and live settings in the not ‘local’.

]]>
https://layer7web.com/discussion/topic/debug-wp-config-php-settings/#post-2392 <![CDATA[Debug wp-config.php Settings]]> https://layer7web.com/discussion/topic/debug-wp-config-php-settings/#post-2392 Sun, 14 Aug 2016 15:48:50 +0000 Layer7web Useful debug settings for the wp-config.php file:

define(WP_DEBUG, true); – Turn on warnings and notices.

define(WP_DEBUG_LOG, true); – Log those warnings and notices to wp-content/debug.log

define(WP_DEBUG_DISPLAY, false); – Don’t display them just log them to debug.log. (Publicly accessible if location is not changed)

]]>
https://layer7web.com/discussion/topic/write-to-debug-log-file/#post-2376 <![CDATA[Write to debug.log file.]]> https://layer7web.com/discussion/topic/write-to-debug-log-file/#post-2376 Sat, 13 Aug 2016 22:11:04 +0000 Layer7web With define(WP_DEBUG_LOG, true); set in wp-config.php you can write to the debug log from your script with:

write_log( string );

]]>