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