[wp-trac] [WordPress Trac] #54734: Allow get_file_path_from_theme filterable like get_theme_file_path

WordPress Trac noreply at wordpress.org
Tue Jan 4 09:38:52 UTC 2022


#54734: Allow get_file_path_from_theme filterable like get_theme_file_path
-------------------------+-----------------------------
 Reporter:  Rahe         |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  template     |
-------------------------+-----------------------------
 Hello,

 I've noticed that `get_theme_file_path` is not used into
 `WP_Theme_JSON_Resolver` but
 `WP_Theme_JSON_Resolver::get_file_path_from_theme method`.

 Since the function `get_theme_file_path` is filterable and to be
 consistent with it, I think this can be a good idea to add a filter to
 this method.

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


More information about the wp-trac mailing list