How to disable WP Sheet Editor completely for specific users

This tutorial is for developers.

You can use this code snippet to disable the spreadsheet editor and all the UI elements.
Replace 1 with the user ID that you don’t want to see our UI.


add_action('vg_sheet_editor/after_extensions_registered', function(){
if( get_current_user_id() === 1 ){
VGSE()->options['be_rest_api_only'] = true;
}
});

Do you need help?

You can receive instant help in the live chat during business hours, or you can contact us and we will help you via email.