On this page
WP_Community_Events::maybe_log_events_response( string $message, array $details )
This method has been deprecated. Use a plugin instead. See #41217 for an example.
Logs responses to Events API requests.
Parameters
$messagestring Required-
A description of what occurred.
$detailsarray Required-
Details that provide more context for the log entry.
Source
File: wp-admin/includes/class-wp-community-events.php. View all references
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 )
)
);
}
Related
Uses
| Uses | Description |
|---|---|
| wp_json_encode() wp-includes/functions.php | Encodes a variable into JSON, with some sanity checks. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_community_events/maybe_log_events_response