Automattic\WooCommerce\Internal\Admin\BlockTemplates
BlockTemplateLogger::set_template_events_log_hash
Set the template events hash for a given template.
Method of the class: BlockTemplateLogger{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->set_template_events_log_hash( $template_id, $hash );
- $template_id(string) (required)
- Template ID.
- $hash(string) (required)
- Hash of template events.
BlockTemplateLogger::set_template_events_log_hash() BlockTemplateLogger::set template events log hash code WC 10.7.0
private function set_template_events_log_hash( string $template_id, string $hash ) {
set_transient( self::LOG_HASH_TRANSIENT_BASE_NAME . $template_id, $hash );
}