WP_Community_Events::maybe_log_events_response

Advertisement

Deprecated Deprecated

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

Summery Summery

Logs responses to Events API requests.

Syntax Syntax

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

Parameters Parameters

$message

(string) (Required) A description of what occurred.

$details

(array) (Required) Details that provide more context for the log entry.

Source Source

File: wp-admin/includes/class-wp-community-events.php

	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 )
			)
		);
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 Use a plugin instead. See #41217 for an example.
4.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.