Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: wp_hash() | Get hash of given string. |
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.
(string) (Required) Widget instance.
(string) MAC for serialized widget instance.
File: wp-includes/class-wp-customize-widgets.php
protected function get_instance_hash_key( $serialized_instance ) { return wp_hash( $serialized_instance ); }
Version | Description |
---|---|
3.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_widgets/get_instance_hash_key