Home / Admin / Force nwwp Colour Scheme
Duplicate Snippet

Embed Snippet on Your Site

Force nwwp Colour Scheme

Makes sure all users use this

Code Preview
php
<?php
add_action( 'admin_init', function() {
	// remove the color scheme picker
	remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
	// force all users to use the "Ectoplasm" color scheme
	add_filter( 'get_user_option_admin_color', function() {
		return 'nwwp';
	});
});

Comments

Add a Comment