WordPress at a glance
function is not described

WP_Customize_Nav_Menu_Auto_Add_Control::content_template() protected WP 4.3.0

Render the Underscore template for this control.

{} It's a method of the class: WP_Customize_Nav_Menu_Auto_Add_Control{}

No Hooks.


null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->content_template();


Since 4.3.0 Introduced.

Code of WP_Customize_Nav_Menu_Auto_Add_Control::content_template() WP 5.7.2

protected function content_template() {
	<# var elementId = _.uniqueId( 'customize-nav-menu-auto-add-control-' ); #>
	<span class="customize-control-title"><?php _e( 'Menu Options' ); ?></span>
	<span class="customize-inside-control-row">
		<input id="{{ elementId }}" type="checkbox" class="auto_add" />
		<label for="{{ elementId }}">
			<?php _e( 'Automatically add new top-level pages to this menu' ); ?>