WP_Customize_Widgets::get_instance_hash_key( string $serialized_instance )
Retrieves MAC for a serialized widget instance string.
Description Description
Allows values posted back from JS to be rejected if any tampering of the data has occurred.
Parameters Parameters
- $serialized_instance
-
(string) (Required) Widget instance.
Return Return
(string) MAC for serialized widget instance.
Source Source
File: wp-includes/class-wp-customize-widgets.php
protected function get_instance_hash_key( $serialized_instance ) { return wp_hash( $serialized_instance ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |