Debugging & Profiling • Settings & Configuration
March 30, 2026 • Views: 11
Most developers set WP_DEBUG and stop there. This guide documents every WordPress debug constant in wp-config.php: WP_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY, SCRIPT_DEBUG, SAVEQUERIES, WP_CACHE, CONCATENATE_SCRIPTS, and more. Includes correct configurations for local development, staging, and production, plus how to use ini_set for custom error log paths.
February 27, 2026 • Views: 20
Slow database queries hide inside plugin loops and poorly-written WP_Query calls. This guide covers SAVEQUERIES, Query Monitor, fixing N+1 loops, update_post_meta_cache, MySQL EXPLAIN, adding wp_postmeta indexes, and transient caching.