[wp-trac] [WordPress Trac] #41152: New Function to Require a file

WordPress Trac noreply at wordpress.org
Tue Apr 14 11:36:42 UTC 2020


#41152: New Function to Require a file
-----------------------------+----------------------
 Reporter:  rinkuyadav999    |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Themes           |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:  close            |     Focuses:
-----------------------------+----------------------

Comment (by johnbillion):

 The `get_theme_file_path()` function allows for exactly what's being
 asked:

 {{{
 require get_theme_file_path( '/inc/icon-functions.php' );
 }}}

 This does not need to be abstracted into a function.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/41152#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list