ActionScheduler_wpCommentLogger::log()publicWC 1.0

Метод класса: ActionScheduler_wpCommentLogger{}

Хуков нет.

Возвращает

Строку. The log entry ID

Использование

$ActionScheduler_wpCommentLogger = new ActionScheduler_wpCommentLogger();
$ActionScheduler_wpCommentLogger->log( $action_id, $message, $date );
$action_id(строка) (обязательный)
-
$message(строка) (обязательный)
-
$date(DateTime)
-
По умолчанию: NULL

Код ActionScheduler_wpCommentLogger::log() WC 8.7.0

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