WordPress at a glance
функция не описана

WP_Customize_Widgets::get_instance_hash_key() protected WP 3.9.0

Retrieves MAC for a serialized widget instance string.

Allows values posted back from JS to be rejected if any tampering of the data has occurred.

It's a method of the class: WP_Customize_Widgets{}

Хуков нет.

Возвращает

String. MAC for serialized widget instance.

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

// protected - for code of main (parent) or child class
$result = $this->get_instance_hash_key( $serialized_instance );
$serialized_instance(string) (required)
Widget instance.

Changelog

Since 3.9.0 Introduced.

Код WP_Customize_Widgets::get_instance_hash_key() WP 5.5.1

<?php
protected function get_instance_hash_key( $serialized_instance ) {
	return wp_hash( $serialized_instance );
}