WP_Customize_Nav_Menus::export_preview_data

Advertisement

Summery Summery

Exports data from PHP to JS.

Syntax Syntax

WP_Customize_Nav_Menus::export_preview_data()

Source Source

File: wp-includes/class-wp-customize-nav-menus.php

		if ( ! empty( $exported_args['menu'] ) && is_object( $exported_args['menu'] ) ) {
			$exported_args['menu'] = $exported_args['menu']->term_id;
		}

		ksort( $exported_args );
		$exported_args['args_hmac'] = $this->hash_nav_menu_args( $exported_args );

		$args['customize_preview_nav_menus_args']                            = $exported_args;

Advertisement

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

Advertisement

Leave a Reply