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

Automattic\WooCommerce\Admin\API

Options::get_option_permissions() public WC 1.0

Get an array of options and respective permissions for the current user.

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

Хуки из метода
Возвращает

Массив.

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

$Options = new Options();
$Options->get_option_permissions( $request );
$request(WP_REST_Request) (обязательный)
Full details about the request.

Код Options::get_option_permissions() WC 4.7.0

<?php
public function get_option_permissions( $request ) {
	$permissions = array(
		'theme_mods_' . get_stylesheet()     => current_user_can( 'edit_theme_options' ),
		'woocommerce_setup_jetpack_opted_in' => current_user_can( 'manage_woocommerce' ),
		'woocommerce_stripe_settings'        => current_user_can( 'manage_woocommerce' ),
		'woocommerce_ppec_paypal_settings'   => current_user_can( 'manage_woocommerce' ),
		'woocommerce_demo_store'             => current_user_can( 'manage_woocommerce' ),
		'woocommerce_demo_store_notice'      => current_user_can( 'manage_woocommerce' ),
	);

	return apply_filters( 'woocommerce_rest_api_option_permissions', $permissions, $request );
}