# automatorwp/6.0.0/modules/ai-assistant/includes/admin.php

AutomatorWP – No-Code Workflow Automation, Integration &amp; Webhooks Plugin, now with AI, version 6.0.0. 33 lines.

- Page: https://pluginprobe.com/plugins/automatorwp/6.0.0/code/modules/ai-assistant/includes/admin.php
- Raw: https://pluginprobe.com/plugins/automatorwp/6.0.0/raw/modules/ai-assistant/includes/admin.php
- Modified: 2026-08-31T06:40:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/automatorwp/6.0.0/code/modules/ai-assistant/includes/admin.php#L10-L20`.

```php
<?php
/**
 * Admin
 *
 * @package     AutomatorWP\AI_Assistant\Admin
 * @since       1.0.0
 * @version     1.0.0
 */
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;

/**
 * AI Assistant settings
 *
 * @since 1.0.0
 *
 * @param array $settings
 *
 * @return array
 */
function automatorwp_ai_assistant_settings_fields( $settings ) {

    $settings['disable_ai_assistant'] = array(
        'name' => __( 'Disable AI Assistant', 'automatorwp' ),
        'tooltip'   => __( 'Disable the AutomatorWP AI Assistant.', 'automatorwp' ),
        'label_cb' => 'cmb_tooltip_label_cb',
        'type' => 'checkbox',
        'classes' => 'cmb2-switch',
    );

    return $settings;
}
add_filter( 'automatorwp_general_settings_fields', 'automatorwp_ai_assistant_settings_fields' );
```
