Automattic\WooCommerce\Admin\Features\Blueprint\Exporters
ExportWCSettingsShipping::check_step_capabilities
Check if the current user has the required capabilities for this step.
Method of the class: ExportWCSettingsShipping{}
No Hooks.
Returns
true|false. True if the user has the required capabilities. False otherwise.
Usage
$ExportWCSettingsShipping = new ExportWCSettingsShipping(); $ExportWCSettingsShipping->check_step_capabilities(): bool;
ExportWCSettingsShipping::check_step_capabilities() ExportWCSettingsShipping::check step capabilities code WC 10.6.2
public function check_step_capabilities(): bool {
return current_user_can( 'manage_woocommerce' );
}