WP_Customize_Nav_Menu_Auto_Add_Control

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

Defined (1)

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

/wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php  
  1. class WP_Customize_Nav_Menu_Auto_Add_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_auto_add'; 
  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. <span class="customize-control-title"><?php _e( 'Menu Options' ); ?></span> 
  26. <label> 
  27. <input type="checkbox" class="auto_add" /> 
  28. <?php _e( 'Automatically add new top-level pages to this menu' ); ?> 
  29. </label> 
  30. <?php