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