Disable Changing The WordPress Theme

* Disable changing the theme for anyone a part from the admin user
* Only can be changes
add_action('admin_init', 'disable_changing_theme_for_non_admin');

function disable_changing_theme_for_non_admin() {
	global $submenu, $userdata;
	if ($userdata->ID != 1) {
The following two tabs change content below.

Md Jahed

Latest posts by Md Jahed (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *