Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //// Vladimir Zhelnov - neatek.pw - Web/iOS dev
- // wp-content/plugins/switch/index.php
- add_filter('template', 'change_theme');
- add_filter('option_template', 'change_theme');
- add_filter('option_stylesheet', 'change_theme');
- function change_theme($theme) {
- if ( get_current_user_id() == USERID_OF_USER_WP ) {
- $theme = 'NAME_OF_THEME';
- }
- return $theme;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement