Last active
September 26, 2025 13:19
-
-
Save nicmare/bb95bc11e6b92b85cd18b8e0a3c5d7a2 to your computer and use it in GitHub Desktop.
blocksy: disable content block tools in wp admin bar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function disable_blocksy_hook_panel(){ | |
| $user = wp_get_current_user(); | |
| if(in_array("editor",$user->roles)) return false; | |
| return true; | |
| } | |
| add_filter('blocksy:content-blocks:has-actions-debugger','disable_blocksy_hook_panel'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment