Automattic\WooCommerce\Internal\Admin\BlockTemplates

BlockTemplateLogger::has_template_events_changed()privateWC 1.0

Has the template events changed since the last time they were logged?

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

Хуков нет.

Возвращает

null. Ничего (null).

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

// private - только в коде основоного (родительского) класса
$result = $this->has_template_events_changed( $template_id, $events_hash );
$template_id(строка) (обязательный)
Template ID.
$events_hash(строка) (обязательный)
Events hash.

Код BlockTemplateLogger::has_template_events_changed() WC 9.7.1

private function has_template_events_changed( string $template_id, string $events_hash ) {
	$previous_hash = get_transient( self::LOG_HASH_TRANSIENT_BASE_NAME . $template_id );

	return $previous_hash !== $events_hash;
}