Automattic\WooCommerce\Internal\Admin\BlockTemplates

BlockTemplateLogger::generate_template_events_hashprivateWC 1.0

Generate a hash for a given set of template events.

Method of the class: BlockTemplateLogger{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->generate_template_events_hash( $template_events ): string;
$template_events(array) (required)
Template events.

BlockTemplateLogger::generate_template_events_hash() code WC 10.7.0

private function generate_template_events_hash( array $template_events ): string {
	return md5( wp_json_encode( $this->to_json( $template_events ) ) );
}