WP_Customize_Nav_Menu_Name_Control

Customize control to represent the name field for a given menu.

Defined (1)

The class is defined in the following location(s).

/wp-includes/customize/class-wp-customize-nav-menu-name-control.php  
  1. class WP_Customize_Nav_Menu_Name_Control extends WP_Customize_Control { 
  2.  
  3. /** 
  4. * Type of control, used by JS. 
  5. * @since 4.3.0 
  6. * @access public 
  7. * @var string 
  8. */ 
  9. public $type = 'nav_menu_name'; 
  10.  
  11. /** 
  12. * No-op since we're using JS template. 
  13. * @since 4.3.0 
  14. * @access protected 
  15. */ 
  16. protected function render_content() {} 
  17.  
  18. /** 
  19. * Render the Underscore template for this control. 
  20. * @since 4.3.0 
  21. * @access protected 
  22. */ 
  23. protected function content_template() { 
  24. ?> 
  25. <label> 
  26. <# if ( data.label ) { #> 
  27. <span class="customize-control-title screen-reader-text">{{ data.label }}</span> 
  28. <# } #> 
  29. <input type="text" class="menu-name-field live-update-section-title" /> 
  30. </label> 
  31. <?php