Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

SyncUI::security_check()privateWC 1.0

Makes sure the user has appropriate permissions and that we have a valid nonce.

Метод класса: SyncUI{}

Хуков нет.

Возвращает

null. Ничего (null).

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

// private - только в коде основоного (родительского) класса
$result = $this->security_check();

Код SyncUI::security_check() WC 8.7.0

private function security_check() {
	if ( ! Users::is_site_administrator() ) {
		wp_die( esc_html__( 'You do not have permission to modify the list of approved directories for product downloads.', 'woocommerce' ) );
	}
}