WordPress at Your Fingertips
function is not described

ActionScheduler_wpCommentLogger::log() public WC 1.0

{} It's a method of the class: ActionScheduler_wpCommentLogger{}

No Hooks.

Return

String. The log entry ID

Usage

$ActionScheduler_wpCommentLogger = new ActionScheduler_wpCommentLogger();
$ActionScheduler_wpCommentLogger->log( $action_id, $message, $date );
$action_id(string) (required)
-
$message(string) (required)
-
$date(DateTime)
-
Default: NULL

Code of ActionScheduler_wpCommentLogger::log() WC 6.1.1

public function log( $action_id, $message, DateTime $date = NULL ) {
	if ( empty($date) ) {
		$date = as_get_datetime_object();
	} else {
		$date = as_get_datetime_object( clone $date );
	}
	$comment_id = $this->create_wp_comment( $action_id, $message, $date );
	return $comment_id;
}