WordPress.org

Make WordPress Core

Ticket #863: theme_root.php

File theme_root.php, 451 bytes (added by ryan, 17 years ago)
Line 
1<?php
2
3/*
4Plugin Name:  Theme Root
5Plugin URI: http://wordpress.org/#
6Description: Set a custom theme root.
7Author:
8Version: 1.0
9Author URI:
10*/
11
12function tr_set_theme_root($theme_root) {
13        return ABSPATH . "wp-content/themes";
14}
15
16function tr_set_theme_root_uri($theme_root) {
17        return get_settings('siteurl') . "/wp-content/themes";
18}
19
20 
21add_filter('theme_root', 'tr_set_theme_root');
22add_filter('theme_root_uri', 'tr_set_theme_root_uri');
23
24?>