WP_Customize_Widgets::get_instance_hash_key( string $serialized_instance ): string

Retrieves MAC for a serialized widget instance string.


Description

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


Top ↑

Parameters

$serialized_instance string Required
Widget instance.

Top ↑

Return

string MAC for serialized widget instance.


Top ↑

Source

File: wp-includes/class-wp-customize-widgets.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
3.9.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.