3 * Customize API: WP_Customize_Nav_Menu_Auto_Add_Control class
6 * @subpackage Customize
11 * Customize control to represent the auto_add field for a given menu.
15 * @see WP_Customize_Control
17 class WP_Customize_Nav_Menu_Auto_Add_Control extends WP_Customize_Control {
20 * Type of control, used by JS.
26 public $type = 'nav_menu_auto_add';
29 * No-op since we're using JS template.
34 protected function render_content() {}
37 * Render the Underscore template for this control.
42 protected function content_template() {
44 <span class="customize-control-title"><?php _e( 'Menu Options' ); ?></span>
46 <input type="checkbox" class="auto_add" />
47 <?php _e( 'Automatically add new top-level pages to this menu' ); ?>