wordpress-website-lifecycle/debug/debug-post-requests.php
2025-03-01 17:36:50 +01:00

10 lines
298 B
PHP

<?php
/*
* Insert this snippet at the top of wp-config.php
*/
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST') {
// file_put_contents(WP_CONTENT_DIR.'/debug-request.log',
error_log(sprintf('POSTed:%s:%s', $_SERVER['REQUEST_URI'], json_encode($_POST)));
}