PHP 62
WP config collection By micha on 18th March 2020 03:03:58 PM
  1. /*
  2.  * DEBUG MODE depends on URL request
  3.  *
  4.  * Replaced:
  5.  * define( 'WP_DEBUG', false );
  6.  *
  7.  * Usage:
  8.  * http(s)://{url}/{path}/?debug={mode}
  9.  *
  10.  * Modes:
  11.  * display - shows errors and warnings as they are generated inside the HTML of pages
  12.  * log - causes all errors to be saved to a debug.log log file in /wp-content/
  13. */
  14. if (isset($_GET['debug']) && $_GET['debug'] == 'display') {
  15.   define('WP_DEBUG', true);
  16.   define('WP_DEBUG_DISPLAY', true);
  17. } else if (isset($_GET['debug']) && $_GET['debug'] == 'log') {
  18.   define('WP_DEBUG', true);
  19.   define('WP_DEBUG_LOG', true);
  20. } else {
  21.   define('WP_DEBUG', true);
  22.   define('WP_DEBUG_LOG', false);
  23.   define('WP_DEBUG_DISPLAY', false);
  24. }
  25.  
  26.  
  27. /* Allows WP to install and update without asking for FTP data */
  28. define('FS_METHOD', 'direct');
  29.  
  30.  
  31. /* ContactForm7 Capabilities */
  32. define( 'WPCF7_ADMIN_READ_CAPABILITY', 'manage_options' );
  33. define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'manage_options' );
  34.  
  35.  
  36. /* Memory Limit */
  37. //define( 'WP_MEMORY_LIMIT', '256M' );
  38. //define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.