No results found. Try again with different words?
Search must be at least 3 characters.
- Section
- Troubleshooting – Icons missing from the blocks
- Spectra Patterns
- How to Set Multiple Column Fields in Contact Form 7 Styler of Spectra?
- Styling Checkbox / Radio / Acceptance control in Contact Form 7 Designer block of Spectra
- Unable to Style Checkbox / Radio Buttons / Acceptance Control using Contact Form 7 Styler of Spectra
- Tab Index – for multiple Gravity Forms
- How to Get Started with Spectra
- How to Exclude A Heading from Table of Contents?
- Spectra – Display Conditions for Blocks
- Importing Single Pages, Templates, and Block Patterns In Spectra
- How to Enable or Disable the Design Library Button
- Spectra – Copy and Paste Style
- Spectra – Container Flex property
- Spectra – Default Content Width
- Spectra – Blocks Editor Spacing
- Spectra – Collapse Panels
- Spectra – Responsive Conditions
- Spectra Pro Dynamic Content Extension
- Site Visibility
- Clearing Cache with Spectra Actions
- Quick Action Bar
- Add Multiple Instagram Accounts in Spectra
- Getting Started with Grid Builder
- Move the Title Bar to Top
- Resolving Layout Conflicts with Spectra Containers After Astra Update
- How to Register High-Privileged Users on Your Website
- Additional User Roles to Access AI Assistant
- Spectra Database Update Instructions (Version 2.0.0 and Below)
- Installing and Importing Starter Templates
- How to Get Started with Spectra
- Manually Install Spectra via FTP
- Automatic Beta Updates for Spectra
- How to Rollback to Previous Spectra Versions
- How to Load Google Fonts Locally
- Activate the Spectra Pro License Key
- How to Install Spectra Pro Plugin
- Translate Spectra Strings using Loco Translate
- How to add a Transparent / Sticky header?
- How to Change the Site Logo?
- How to Change Global Styles?
- How to Disable Title on Posts, Pages?
- How to add a transparent/ sticky header for a single page/post?
- Change Header and Footer Patterns in Spectra One Theme
- Add Custom/Google Fonts In Spectra One
- How to reset global default styling?
- Manually Install Spectra One via FTP?
- Disable or Enable Header/Footer for Specific Pages/Posts
Additional User Roles to Access AI Assistant
By default, the AI assistant only be available to certain user roles on your WordPress website. But you can easily grant access to additional roles using a special filter.
The zip_ai_assistant_capability_additional_roles filter allows different roles to use the AI assistant in your WordPress website.
How to Allow Multiple User Roles to Use the AI Assistant?
Here’s where the zip_ai_assistant_capability_additional_roles filter comes in. This filter lets you specify which user roles can use the AI assistant’s features.
Example: Granting Access to Contributors
Below is an example of how to use the zip_ai_assistant_capability_additional_roles filter to add the ‘contributor’ role to the AI assistant’s capabilities:
Let’s assume you want contributors on your website to be able to use the AI assistant. To achieve that, you need to add the following code snippet.
add_filter( 'zip_ai_assistant_capability_additional_roles', function( $arguments ) {
$arguments[] = 'contributor';
return $arguments;
}, 10, 1 );
The code uses a filter called zip_ai_assistant_capability_additional_roles
. This filter basically tells the AI assistant which user roles should have access. In our example, we’re adding the ‘contributor’ role to the list of authorized roles.
We hope this document clarifies how to grant access to the AI assistant for additional user roles on your WordPress website. If you have any questions or need further assistance, feel free to leave a comment below.
We don't respond to the article feedback, we use it to improve our support content.