Automattic\WooCommerce\Admin\Features\Blueprint\Exporters
ExportWCPaymentGateways::check_step_capabilities
Check if the current user has the required capabilities for this step.
Метод класса: ExportWCPaymentGateways{}
Хуков нет.
Возвращает
bool. True if the user has the required capabilities. False otherwise.
Использование
$ExportWCPaymentGateways = new ExportWCPaymentGateways(); $ExportWCPaymentGateways->check_step_capabilities(): bool;
Код ExportWCPaymentGateways::check_step_capabilities() ExportWCPaymentGateways::check step capabilities WC 11.3.0
public function check_step_capabilities(): bool {
return current_user_can( 'manage_woocommerce' );
}