WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Customize_Panel::check_capabilities() public WP 4.0.0

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

Это метод класса: WP_Customize_Panel{}

Хуков нет.

Возвращает

true/false. False if theme doesn't support the panel or the user doesn't have the capability.

Использование

$WP_Customize_Panel = new WP_Customize_Panel();
$WP_Customize_Panel->check_capabilities();

Список изменений

С версии 4.0.0 Введена.

Код WP_Customize_Panel::check_capabilities() WP 5.5.1

wp-includes/class-wp-customize-panel.php
<?php
final public function check_capabilities() {
	if ( $this->capability && ! current_user_can( $this->capability ) ) {
		return false;
	}

	if ( $this->theme_supports && ! current_theme_supports( ... (array) $this->theme_supports ) ) {
		return false;
	}

	return true;
}