Standard template loading for plugins

  1. shazdeh


    The idea is that similar to get_template_part which looks for template files inside STYLESHEETPATH and then TEMPLATEPATH, we would have a function that plugin authors use to load templates, and that function would locate the template which the plugin directory has the lowest priority for the template file. This way theme authors could override the template files that a plugin could have.
    This is really easy to implement, but I'm thinking if it could become a standard function and therefor theme authors could rely on it (just as you know that a theme which uses get_template_part offers the ability to override the template file.)

    Posted: 6 years ago #

RSS feed for this topic


You must log in to post.

  • Rating

    4 Votes
  • Status

    This idea is under consideration