Find answers, ask questions, and connect with our
community around the world.

Activity Forums Web Design WordPress How to log all fired webhooks and parameters?

  • How to log all fired webhooks and parameters?

    updated 2 weeks ago 0 Member · 1 Post
  • Deborah

    Member
    October 29, 2019 at 10:49 pm

    This function will write all fired webhooks to a log file, but I’d like to also see parameters that were included with the webhooks. Any suggestions, please? add_action( ‘all’, ‘log_hook_calls’ ); function log_hook_calls() { // Restrict logging to requests to my IP $client_ip = “12.345.678.901”; // Path to log file: $log_file_path = “/var/www/html/log-hook-calls.log”; if ($_SERVER[‘REMOTE_ADDR’] == $client_ip) { if ( WP_DEBUG_LOG ) { error_log(date(“d-m-Y, H:i:s”) . “: ” . current_filter() . “n”, 3, $log_file_path); } } } – by hq overview otto-motto – –

Reply to: Deborah
Your information:

Cancel
Original Post
0 of 0 posts June 2018
Now