Like many developers just getting started with the WordPress Customizer API, Ahmad Awais began with frameworks like Kirki, Redux, and Titan. After a short time, Awais discovered the problem with using frameworks in his projects.
“It quickly became hard to deal with the updates, backward compatibility, and then code quality especially concerning security,” he said. “I found myself reading more and more source code to keep up with their development. And then came a time when I felt I should probably go as native as I can to use WordPress APIs instead.”
Awais said a lack of documented examples is what initially hindered him from using the Customizer API, but after jumping in with both feet he found that the basic concepts were fairly clear. During the process of learning how to use the API, he built a Customizer package for Sublime Text to speed up his development workflow.
Sublime-WP-Customizer is a snippet-based library that makes it easy to create customizer options. After selecting a snippet, pressing the tab button will navigate from one editable area to the next.
The snippets make it easy to add customizer panels, sections, controls, and register functions. Sublime will auto-complete the snippets as the user begins typing.
“Over time, I have built a good deal of such dev-workflow-automation packages for Sublime Text that I plan to share with the WordPress community, with this package being the first of many,” Awais said.
Sublime-WP-Customizer is GPL licensed and available on Sublime Package Control and GitHub.
Permalink
Thank you, Sarah!
Totally, appreciate the coverage at WPTavern. With your help, WordPress Customizer package is the 9th most trending package at Sublime package control now. ?
Everyone, don’t forget to provide me with your feedback/feature requests/issues etc.
I will be sharing more Sublime Text packages, like this one, in the next few months.
Report
Permalink
@Ahmed – Great work. I use Sublime Text and have been wanting something like this.
I had to learn how to use code the customizer and it was a very tedious process but I got it pinned down. There was a few times I wished there was a boiler plate of some kind. I am sure there is but I never found it..lol
Anywho, I am going to grab it and use. I will def let you know how it goes.
Again, thanks for creating this and releasing it ;)
Report
Permalink
Glad you like it.
I know the feeling. It all started with building a boilerplate (which I am planning to write about in a week) the boilerplate is called WPCustomizer. Not really a boilerplate, more of a demonstration on how to use all the available basic and advanced controls in the WordPress Customizer.
It’s a theme, download the ZIP and try it out, look at the Customizer for what it adds.
NOTE: I built WPCustomize using the WordPress Customizer Package for Sublime. So, there’s that.
Sure! Looking forward to your feedback :)
Report
Permalink
I just wish it had been released six weeks ago so that I could have mentioned it in my WordCamp presentation. Looks awesome
Report
Permalink
Glad you like it. You can mention in the next one ;) WCEU is right around the corner.
Report