[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/js/ -> customize-nav-menus.js (summary)

(no description)

File Size: 3464 lines (109 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  getNavMenuCount()
  updateNoticeVisibility()
  addChangeEventListener()
  removeChangeEventListener()
  menuItemIdToSettingId()
  displayNavMenuName()

Functions
Functions that are not part of a class:

getNavMenuCount()   X-Ref
Get number of non-deleted nav menus.

since: 4.9.0
returns: {number} Count.

updateNoticeVisibility()   X-Ref
Update visibility of notice to prompt users to create menus.

since: 4.9.0
returns: {void}

addChangeEventListener( setting )   X-Ref
Handle setting addition.

since: 4.9.0
param: {wp.customize.Setting} setting - Added setting.
returns: {void}

removeChangeEventListener( setting )   X-Ref
Handle setting removal.

since: 4.9.0
param: {wp.customize.Setting} setting - Removed setting.
returns: {void}

menuItemIdToSettingId( menuItemId )   X-Ref

param: {String} menuItemId

displayNavMenuName( name )   X-Ref
Apply sanitize_text_field()-like logic to the supplied name, returning a
"unnammed" fallback string if the name is then empty.

param: {string} name
returns: {string}



Generated: Sun Sep 15 01:00:03 2019 Cross-referenced by PHPXref 0.7.1