Home / Disable Full Site Editing (FSE)
Duplicate Snippet

Embed Snippet on Your Site

Disable Full Site Editing (FSE)

Prevent any user from making changes to the site using the Full Site Editor.

100+
Code Preview
php
<?php
add_action( 'admin_menu', function() {
	remove_submenu_page('themes.php', 'site-editor.php');
});
add_action('admin_bar_menu', function($wp_admin_bar) {
	$wp_admin_bar->remove_node('site-editor');
}, 250);
add_action('admin_init', function() {
	global $pagenow;
	if ('site-editor.php' === $pagenow) {
		wp_safe_redirect(admin_url()); 
		exit;
	}
});

Comments

Add a Comment