Title: Feature Projects: Customize Section Button and Autoload
Author: Justin Tadlock
Published: July 1, 2019
Last modified: July 10, 2019

---

 [  ](https://profiles.wordpress.org/greenshady/) [Justin Tadlock](https://profiles.wordpress.org/greenshady/)
1:21 pm _on_ July 1, 2019     
Tags: [open source ( 4 )](https://make.wordpress.org/themes/tags/open-source/),
[projects ( 2 )](https://make.wordpress.org/themes/tags/projects/), [TRT ( 37 )](https://make.wordpress.org/themes/tags/trt/)

# Feature Projects: Customize Section Button and Autoload

Today, I’m happy to announce the official 1.0 release of our first two feature projects.

If you haven’t been following along, the team decided to build out some features
that many themes build in very different ways. The idea is to bring some standardization
for these features for authors, reviewers, and end users in the case of packages
with a UIUI UI is an acronym for User Interface - the layout of the page the user
interacts with. Think ‘how are they doing that’ and less about what they are doing..
It also means that all theme authors will have access to these tools and not have
to worry about building them in-house.

**Note:** PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-
used open source general-purpose scripting language that is especially suited for
web development and can be embedded into HTML. [https://www.php.net/manual/en/index.php](https://www.php.net/manual/en/index.php)
5.6+ is a requirement for the current packages. This means your theme must be built
for WordPress 5.2+ or that you’ll need to gracefully fail if supporting older versions.

## Customize Section Button

![Screenshot of the customize section button in the WordPress theme customizer.](
https://make.wordpress.org/themes/files/2019/07/customize-section-button-003.png)

Screenshot of the Customize Section Button

This project provides a method of adding a link/button in the customizerCustomizer
Tool built into WordPress core that hooks into most modern themes. You can use it
to preview and modify many of your site’s appearance settings.. The primary use 
case for it will likely be to add an upsell link, but I could see it being used 
for something like pointing a user to documentation. It’s pretty straightforward
to use and works like any other customizer section.

 * [GitHub Repo](https://github.com/WPTRT/customize-section-button)
 * [Packagist](https://packagist.org/packages/wptrt/customize-section-button)

## Autoload

The Autoload project is a package for autoloading any classes that we create, such
as the above-mentioned Customize Section Button project. It allows you to define
namespaces and the directory path(s) of where to find classes.

We view this project as a stepping stone toward getting theme authors to use a proper
dependency manager such as [Composer](https://getcomposer.org) and its autoloading
feature. We also strongly recommend following the [Composer Autoloading Optimization Guide](https://getcomposer.org/doc/articles/autoloader-optimization.md).
Seriously, use Composer if you’re ready for it or already using it.

I think we should also view this project as call for the coreCore Core is the set
of software required to run WordPress. The Core Development Team builds WordPress.
developers to implement a proper autoloading feature into WordPress itself. Such
a feature would be far more efficient and provide a standard for both theme and 
pluginPlugin A plugin is a piece of software containing a group of functions that
can be added to a WordPress website. They can extend functionality or add new features
to your WordPress websites. WordPress plugins are written in the PHP programming
language and integrate seamlessly with WordPress. These can be free in the WordPress.
org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. authors to follow.

 * [GitHub Repo](https://github.com/WPTRT/autoload)

## Are these packages required?

This question has come up a few times, so I wanted to go ahead and address it now.
The short answer is that, no, they are not currently required.

The long answer is that I don’t know what the team may decide in the future. There
may be projects where the team will say, “If you want to implement this feature,
use this particular package.” It’d certainly help streamline some of the review 
process, but there are things to consider other than the review process.

My goal is to get the TRT and theme authors working together to build solutions.
If we build good solutions, I’d hope that theme authors would naturally move toward
using them because it ultimately saves them time and resources. I still think the
question of whether a particular package should be required is premature. Let’s 
build the solutions together first.

## Next projects

The next projects are likely going to be a set of standard theme template hooksHooks
In WordPress theme and development, hooks are functions that can be applied to an
action or a Filter in WordPress. Actions are functions performed when a certain 
event occurs in WordPress. Filters allow you to modify certain functions. Arguments
used to hook both filters and actions look the same. and something to tackle admin
notices. These are a little bigger than the first two projects and will likely need
more community involvement. We’ll try to get repos up for them soon so that we can
begin discussions.

[#open-source](https://make.wordpress.org/themes/tags/open-source/), [#projects](https://make.wordpress.org/themes/tags/projects/),
[#trt](https://make.wordpress.org/themes/tags/trt/)

### Share this:

 * [  Threads ](https://make.wordpress.org/themes/2019/07/01/feature-projects-customize-section-button-and-autoload/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/themes/2019/07/01/feature-projects-customize-section-button-and-autoload/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/themes/2019/07/01/feature-projects-customize-section-button-and-autoload/?share=bluesky)
 * [  Facebook ](https://make.wordpress.org/themes/2019/07/01/feature-projects-customize-section-button-and-autoload/?share=facebook)
 * [  X ](https://make.wordpress.org/themes/2019/07/01/feature-projects-customize-section-button-and-autoload/?share=x)
 * [  LinkedIn ](https://make.wordpress.org/themes/2019/07/01/feature-projects-customize-section-button-and-autoload/?share=linkedin)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fthemes%2F2019%2F07%2F01%2Ffeature-projects-customize-section-button-and-autoload%2F%23respond&locale=en_US)

 1. ![](https://secure.gravatar.com/avatar/e522019adbe7cb4145f9e01c344c036baaa8bf76cd5d76e6b737b60be9af88cc?
    s=32&d=mm&r=g)
 2.  [Gary Pendergast](https://profiles.wordpress.org/pento/)  9:05 am _on_ July 8,
    2019
 3. > I think we should also view this project as call for the coreCore Core is the
    > set of software required to run WordPress. The Core Development Team builds WordPress.
    > developers to implement a proper autoloading feature into WordPress itself. Such
    > a feature would be far more efficient and provide a standard for both theme and
    > pluginPlugin A plugin is a piece of software containing a group of functions 
    > that can be added to a WordPress website. They can extend functionality or add
    > new features to your WordPress websites. WordPress plugins are written in the
    > PHP programming language and integrate seamlessly with WordPress. These can be
    > free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
    > or can be cost-based plugin from a third-party. authors to follow.
 4. The “core developers” are anyone who contributes to Core. 😉
 5. Unfortunately, I’ve only recently become aware of this effort by the TRT, I’d strongly
    encourage you to consider working on adding it to Core, instead. Personally, I’d
    love to see autoloading land in Core, and if you want to put the time into reviving
    [#36335](https://core.trac.wordpress.org/ticket/36335), I’m more than happy to 
    provide feedback and decision making where needed. 🙂
 6.  * ![](https://secure.gravatar.com/avatar/8013a62d7397c006bae48b96d6832a573ea71a7d5d3597fe584210567b508c05?
       s=32&d=mm&r=g)
     *  [Justin Tadlock](https://profiles.wordpress.org/greenshady/)  12:38 pm _on_
       July 8, 2019
     * >  The “coreCore Core is the set of software required to run WordPress. The 
       > Core Development Team builds WordPress. developers” are anyone who contributes
       > to Core. 😉
     * You know what I mean–the core decision-makers.
     * >  Unfortunately, I’ve only recently become aware of this effort by the TRT,
       > I’d strongly encourage you to consider working on adding it to Core, instead.
     * We covered this in a previous post comments, I believe. Or, maybe on SlackSlack
       Slack is a Collaborative Group Chat Platform [https://slack.com/](https://slack.com/).
       The WordPress community has its own Slack Channel at [https://make.wordpress.org/chat/](https://make.wordpress.org/chat/).
     * The problem with building things for core directly is that we could be looking
       at years before a feature is blessed and allowed in, if ever. By building out
       the tools that theme authors need/want ourselves, we can get code out there 
       a lot sooner and in use without all the weed discussions that’s often accompanied
       with getting something into core. The first two packages took less than a month
       to make happen.
     * The other benefit is that if anyone ever wants to roll a particular package 
       that we create into core, it’s there for the taking and licensed under the GPLGPL
       GPL is an acronym for GNU Public License. It is the standard license WordPress
       uses for Open Source licensing [https://wordpress.org/about/license/](https://wordpress.org/about/license/).
       The GPL is a ‘copyleft’ license [https://www.gnu.org/licenses/copyleft.en.html](https://www.gnu.org/licenses/copyleft.en.html).
       This means that derivative work can only be distributed under the same license
       terms. This is in distinction to permissive free software licenses, of which
       the BSD license and the MIT License are widely used examples.. And, core will
       have at least some stats to see how many theme authors are using such packages.
     * Building things this way allows us to have a testbed for ideas without commiting
       to them going into core immediately. MP6, the REST APIREST API The REST API 
       is an acronym for the RESTful Application Program Interface (API) that uses 
       HTTP requests to GET, PUT, POST and DELETE data. It is how the front end of 
       an application (think “phone app” or “website”) can communicate with the data
       store (think “database” or “file system”)
        [https://developer.wordpress.org/rest-api/](https://developer.wordpress.org/rest-api/),
       and GutenbergGutenberg The Gutenberg project is the new Editor Interface for
       WordPress. The editor improves the process and experience of creating new content,
       making writing rich content much simpler. It uses ‘blocks’ to add richness rather
       than shortcodes, custom HTML etc. [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
       have all taken a similar approach in the past. Those were mature projects before
       landing in core.
     * >  Personally, I’d love to see autoloading land in Core, and if you want to 
       > put the time into reviving [#36335](https://core.trac.wordpress.org/ticket/36335),
       > I’m more than happy to provide feedback and decision making where needed. 
       > 🙂
     * I wouldn’t touch that trainwreck of a ticket if you paid me. 🙂 I welcome anyone
       else to it.
     * I have no interest in building a fully-featured autoloader when existing solutions,
       such as Composer, already exist. I do have an interest in making sure theme 
       authors have the ability to use our feature projects, at least some of which
       will require an autoloader. Therefore, we needed a basic autoloading solution
       for those new to using autoloaders.

### Leave a Reply 󠀁[Cancel reply](https://make.wordpress.org/themes/2019/07/01/feature-projects-customize-section-button-and-autoload/?output_format=md#respond)󠁿

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fthemes%2F2019%2F07%2F01%2Ffeature-projects-customize-section-button-and-autoload%2F&locale=en_US)
to post a comment.

This site uses Akismet to reduce spam. [Learn how your comment data is processed.](https://akismet.com/privacy/)

# Post navigation

[← Meeting notes from the 25th of June 2019](https://make.wordpress.org/themes/2019/06/25/meeting-notes-from-the-25th-of-june-2019/)

[Theme Review Team Meeting Agenda for July 09, 2019 →](https://make.wordpress.org/themes/2019/07/08/theme-review-team-meeting-agenda-for-july-09-2019/)