Automattic\WooCommerce\Internal\Admin\BlockTemplates
BlockTemplateLogger::set_template_events_log_hash()
Set the template events hash for a given template.
Метод класса: BlockTemplateLogger{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->set_template_events_log_hash( $template_id, $hash );
- $template_id(строка) (обязательный)
- Template ID.
- $hash(строка) (обязательный)
- Hash of template events.
Код BlockTemplateLogger::set_template_events_log_hash() BlockTemplateLogger::set template events log hash WC 9.7.1
private function set_template_events_log_hash( string $template_id, string $hash ) { set_transient( self::LOG_HASH_TRANSIENT_BASE_NAME . $template_id, $hash ); }