WP_Customize_Nav_Menu_Section::json()

Get section parameters for JS.


Description Description


Return Return

(array) Exported parameters.


Top ↑

Source Source

File: wp-includes/customize/class-wp-customize-nav-menu-section.php

	public function json() {
		$exported            = parent::json();
		$exported['menu_id'] = intval( preg_replace( '/^nav_menu\[(-?\d+)\]/', '$1', $this->id ) );

		return $exported;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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