preg_replace regex problem
I finally got it figured out. In order to see the content that I was trying to edit, I turned on debugging in wp-config.php: define(‘WP_DEBUG’, true); // set true if ( WP_DEBUG ) { define(‘WP_DEBUG_LOG’, ‘../logs/debug.log’ ); define(‘WP_DEBUG_DISPLAY’, false); // don’t display errors on pages @ini_set( ‘display_errors’, 0 ); } Then, in the function that … Read more