Skip to content

Commit

Permalink
Add quick POST debug
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Jan 17, 2025
1 parent f36f8d3 commit 6d30a10
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions debug/debug-post-requests.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

/*
* Insert this snippet at the top of wp-config.php
*/

if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST') { error_log('POSTed:'.$_SERVER['REQUEST_URI'].json_encode($POST)); }

1 comment on commit 6d30a10

@szepeviktor
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@strautins This is for you too.

Please sign in to comment.