[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

(no description)

File Size: 3517 lines (112 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.

return: {number} Count.

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

return: {void}

addChangeEventListener( setting )   X-Ref
Handle setting addition.

return: {void}
param: {wp.customize.Setting} setting - Added setting.

removeChangeEventListener( setting )   X-Ref
Handle setting removal.

return: {void}
param: {wp.customize.Setting} setting - Removed setting.

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.

return: {string}
param: {string} name



Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref