W3cubDocs

/WordPress

WP_Customize_Nav_Menus_Panel::check_capabilities(): bool

Checks required user capabilities and whether the theme has the feature support required by the panel.

Return

bool False if theme doesn’t support the panel or the user doesn’t have the capability.

Source

		<?php
		// NOTE: The following is a workaround for an inability to treat (and thus label) a list of sections as a whole.
		?>
		<li class="customize-control-title customize-section-title-nav_menus-heading"><?php _e( 'Menus' ); ?></li>
		<?php
	}
}

Changelog

Version Description
5.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_nav_menus_panel/check_capabilities