Logs responses to Events API requests.
Parameters
$message
stringrequired- A description of what occurred.
$details
arrayrequired- Details that provide more context for the log entry.
Source
protected function maybe_log_events_response( $message, $details ) {
_deprecated_function( __METHOD__, '4.9.0' );
if ( ! WP_DEBUG_LOG ) {
return;
}
error_log(
sprintf(
'%s: %s. Details: %s',
__METHOD__,
trim( $message, '.' ),
wp_json_encode( $details )
)
);
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.