Automattic\WooCommerce\Blueprint\Importers
ImportActivateTheme::check_step_capabilities
Check if the current user has the required capabilities for this step.
Метод класса: ImportActivateTheme{}
Хуков нет.
Возвращает
bool. True if the user has the required capabilities. False otherwise.
Использование
$ImportActivateTheme = new ImportActivateTheme(); $ImportActivateTheme->check_step_capabilities( $schema ): bool;
- $schema(объект) (обязательный)
- The schema to process.
Код ImportActivateTheme::check_step_capabilities() ImportActivateTheme::check step capabilities WC 11.2.2
public function check_step_capabilities( $schema ): bool {
return current_user_can( 'switch_themes' );
}