[wp-trac] [WordPress Trac] #47002: Create wp_theme_directory_constants() function and dynamic WordPress Themes folder

WordPress Trac noreply at wordpress.org
Sat Apr 20 14:05:24 UTC 2019


#47002: Create wp_theme_directory_constants() function and dynamic WordPress Themes
folder
---------------------------+-----------------------------
 Reporter:  mehrshaddarzi  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  5.1.1
 Severity:  normal         |   Keywords:  has-patch
  Focuses:                 |
---------------------------+-----------------------------
 One of the needs of WordPress users is to dynamically modify the themes
 folder.

 For Change themes folder name in (wp-content dir) you can added this code
 in wp-config.php :

 {{{
 define( 'WP_THEMES_DIR', "template" );
 }}}

 also for change complete path and url :

 {{{
 define( 'WP_THEMES_PATH', ABSPATH . "/public/template" );
 define( 'WP_THEMES_URL', WP_SITEURL . "/public/template" );
 }}}

 This item works for WordPress Multi-site without problems.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47002>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list