WP_Community_Events::maybe_log_events_response( string $message, array $details )

In this article

This method has been deprecated. Use a plugin instead. See #41217 for an example.

Logs responses to Events API requests.

Parameters

$messagestringrequired
A description of what occurred.
$detailsarrayrequired
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 )
		)
	);
}

Changelog

VersionDescription
4.9.0Use a plugin instead. See #41217 for an example.
4.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.