Troubleshooting Common WordPress Multisite User Role and Capability Issues
Content
WordPress Multisite is a powerful platform for managing multiple sites from a single installation. However, its complex user role and capability system can often lead to confusing issues for site administrators and editors. Based on common community reports, this guide explains the most frequent problems and provides clear solutions.
Common Multisite User Role Problems
Many Multisite users encounter similar issues where certain functionality works for Super Admins but not for other user roles. These problems typically stem from how WordPress handles capabilities differently in a Multisite environment compared to single-site installations.
1. Inability to Embed Content or Use Custom HTML
Problem: Editors and Authors cannot embed iframes from YouTube, Facebook, or other services, and their custom HTML gets stripped out when saving content.
Why it happens: In Multisite, the unfiltered_html capability is typically reserved only for Super Admins as a security measure. This prevents regular administrators and editors from adding potentially unsafe code.
Solution: You can grant this capability to other roles using code in your theme's functions.php file:
function add_unfiltered_html_capability($caps, $cap, $user_id) {
if ('unfiltered_html' === $cap && user_can($user_id, 'administrator')) {
$caps = array('unfiltered_html');
}
return $caps;
}
add_filter('map_meta_cap', 'add_unfiltered_html_capability', 1, 3);
Security Note: Be aware that allowing unfiltered HTML does present security risks. Only implement this solution if you trust your users with the ability to add arbitrary code.
2. Blocks Breaking After Non-Super Admin Edits
Problem: Complex blocks (like Google Maps or custom icon blocks) stop working properly after being edited and saved by non-Super Admin users.
Why it happens: This often relates to the same capability restrictions mentioned above. When users without proper capabilities save content, WordPress may strip out necessary code or attributes from blocks.
Solution: Ensure users have appropriate capabilities for the content they're editing. You may need to use a plugin like Members or User Role Editor to carefully adjust capabilities for specific roles.
3. Cannot See or Edit Other Users' Content
Problem: Editors cannot see pages or posts created by other users, even though they have the "edit_others_posts" capability.
Why it happens: This could be due to plugin conflicts or custom code that's interfering with normal WordPress capability checks.
Solution:
- Deactivate all plugins temporarily to check for conflicts
- Ensure the user role truly has the "edit_others_posts" capability
- Check if any custom code in your theme might be filtering capabilities
- Verify that users are properly assigned to the specific site in your Multisite network
4. Cannot Replace Files in File Blocks
Problem: Editors can upload files but cannot use the "Replace" button in File blocks unless they're Administrators.
Why it happens: The capability required for replacing files might differ from uploading them, and this may not be properly assigned in Multisite environments.
Solution: Investigate which specific capability controls file replacement (possibly edit_files or similar) and ensure it's granted to the appropriate roles using a role management plugin.
Best Practices for Managing Multisite Capabilities
- Always test changes in a development environment before applying them to your live network
- Use role management plugins rather than directly modifying database values
- Grant minimal necessary capabilities - only provide the exact permissions users need to perform their tasks
- Document all custom capability changes made to your network for future reference
- Regularly audit user roles to ensure they still have appropriate permissions
If you continue to experience issues after trying these solutions, the WordPress community recommends checking the official WordPress support forums or GitHub repositories for more specific guidance related to your particular setup.
Related Support Threads Support
-
Uncheck Default Save to Reusable Blockshttps://wordpress.org/support/topic/uncheck-default-save-to-reusable-blocks/
-
Blank Page Editing Posts/Pageshttps://wordpress.org/support/topic/blank-page-editing-posts-pages/
-
disable SVG file upload Throughout the networkhttps://wordpress.org/support/topic/disable-svg-file-upload-throughout-the-network/
-
Theme editor in multi-site – can’t edit PHP fileshttps://wordpress.org/support/topic/theme-editor-in-multi-site-cant-edit-php-files/
-
File block Replace on Multisitehttps://wordpress.org/support/topic/file-block-replace-on-multisite/
-
theme file editor in newest version of wordpresshttps://wordpress.org/support/topic/theme-file-editor-in-newest-version-of-wordpress/
-
Edits Using Theme Editor in Newtwork Admin Gives Errorhttps://wordpress.org/support/topic/edits-using-theme-editor-in-newtwork-admin-gives-error/
-
can’t edit privacy pagehttps://wordpress.org/support/topic/cant-edit-privacy-page/
-
Multisite network changing user roleshttps://wordpress.org/support/topic/multisite-network-changing-user-roles/
-
Allowing html tags for Administrators and Editors in WPMUhttps://wordpress.org/support/topic/allowing-html-tags-for-administrators-and-editors-in-wpmu/
-
Authors cannot embed from YouTube etchttps://wordpress.org/support/topic/authors-cannot-embed-from-youtube-etc/
-
Creating users as Editorhttps://wordpress.org/support/topic/creating-users-as-editor/
-
User permission issue – cannot see any pages in backend of other usershttps://wordpress.org/support/topic/user-permission-issue-cannot-see-any-pages-in-backend-of-other-users/
-
Unfiltered HTMLhttps://wordpress.org/support/topic/unfiltered-html-2/
-
Allowing unfiltered html in multisitehttps://wordpress.org/support/topic/allowing-unfiltered-html-in-multisite/
-
Product Variation Creation Issuehttps://wordpress.org/support/topic/product-variation-creation-issue/
-
Allow Editors to Post iFrame embedshttps://wordpress.org/support/topic/multisite-allow-editors-to-post-iframe-embeds/
-
Change user roleshttps://wordpress.org/support/topic/change-user-roles-2/
-
Multisite Admins – editing custom HTML, inline SVG or script tag breaks pagehttps://wordpress.org/support/topic/multisite-admins-editing-custom-html-inline-svg-or-script-tag-breaks-page/
-
Blocks not working after Non-super admin edits.https://wordpress.org/support/topic/blocks-not-working-after-non-super-admin-edits/