Multiple Inputs in a Customizer Control

Posted by Prem Tiwari | Updated on

This plugin demonstrates how to do it. Of note, the steps involved are:

1. Register each setting to update/change
2. When creating the control, pass an array as the setting argument
3. When rendering the inputs, pass in the settings key to link and value
4. The settings key is not the name of the setting, but the indices of the array, e.g. 0, 1, 2
5. Access the settings registered to a control via $this->settings

Here’s the code:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers