Skip to content

Repository with examples of using the Customize API to make pro sections, controls, etc.

License

Notifications You must be signed in to change notification settings

justintadlock/trt-customizer-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

"Pro" theme section examples for the customizer

This repository is some examples of using the Customize API for adding a "pro" link to the customizer.

The goal is to provide examples so that theme authors are not bypassing the core API and doing weird things like injecting links into the DOM via JavaScript, which can and will most likely break in future iterations of the customizer in core WordPress.

Testing

To test the output, simply drop the trt-customize-pro folder into the root of your theme like so:

/themes
        /your-theme
                /trt-customize-pro

Then, load an example with this code in your theme's functions.php:

require_once( trailingslashit( get_template_directory() ) . 'trt-customize-pro/example-1/class-customize.php' );

Usage

If you decide to use in your theme, make sure to change up all the prefixes, textdomains, and paths. Everything should be relatively straightforward if you've worked with the customizer.

Copyright and License

All code, unless otherwise noted, is licensed under the GNU GPL, version 2 or later.

2016 © Justin Tadlock.

About

Repository with examples of using the Customize API to make pro sections, controls, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published