- Section
- Troubleshooting: Missing Icons
- Spectra Patterns
- Contact Form 7: Multiple Column Fields
- Contact Form 7: Checkbox / Radio / Acceptance Control
- Unable To Style Contact Form 7
- Tab Index For Multiple Gravity Forms
- Getting Started With Spectra
- Exclude Heading From TOC
- Block Display Conditions
- Import Single Pages, Templates, & Block Patterns
- Enable/Disable Design Library Button
- Copy & Paste Style
- Container Flex Property
- Default Content Width
- Blocks Editor Spacing
- Collapse Panels
- Responsive Conditions
- Dynamic Content Extension
- Site Visibility
- Spectra Actions: Clear Cache
- Quick Action Bar
- Add Multiple Instagram Accounts
- Grid Builder
- Move Title Bar To Top
- Resolving Container Layout Conflicts
- Register High-Privileged Users
- User Roles Access To AI
- Database Update Instructions (Below 2.0.0)
- FAQ's: VIP Priority Support
- Whitelist Email Address
- Using ACF Repeater Field in Spectra
- Transparent / Sticky Header
- Change Site Logo
- Change Global Styles
- Disable Title on Posts & Pages
- Transparent / Sticky Header For Single Page / Post
- Change Header & Footer Patterns
- Custom / Google Fonts
- Reset Global Default Styling
- Manually Install Spectra One Via FTP
- Enable / Disable Header & Footer On 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 to your child theme’s functions.php file.
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.