WP_Customize_Nav_Menu_Section::json(): array

In this article

Get section parameters for JS.

Return

array Exported parameters.

Source

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

	return $exported;
}

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

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