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