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

WordPress Trac noreply at wordpress.org
Sat Jun 24 17:24:13 UTC 2017


#41152: New Function to Require a file
-----------------------------+------------------------------
 Reporter:  rinkuyadav999    |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  close            |     Focuses:
-----------------------------+------------------------------

Comment (by rinkuyadav999):

 Seems developer uses get_template_part() function to add part of template
 instead part of functions.php file. Expecting a dedicated function to
 require a file (part of functions.php).

 Replying to [comment:2 SergeyBiryukov]:
 > Hi @rinkuyadav999, thank you for the ticket!
 >
 > This is already possible with
 [https://developer.wordpress.org/reference/functions/get_template_part/
 get_template_part()], what's the benefit of the new function?

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


More information about the wp-trac mailing list