WRITTEN BY

ntechi

VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)

WordPress Disable Theme Changing

So you want that your client should not change the theme. OK, just copy the following snippet to your functions.php file.

add_action('admin_init', 'slt_lock_theme');
function slt_lock_theme() {
	global $submenu, $userdata;
	get_currentuserinfo();
	if ($userdata->ID != 1) {
		unset($submenu['themes.php'][5]);
		unset($submenu['themes.php'][15]);
	}
}

Once saved, your client will not be able to switch or change themes anymore.

WordPress Disable Theme Changing, 5.0 out of 5 based on 1 rating