input – How to use input_attrs function two or more times?
I want to be able to use the function input_attrs()
With this type of code $this->input_attrs()
Multiple times within one customizer control.
Example 1:
<input type="text" value="blah1" <?php $this->input_attrs($1); ?>>
<input type="text" value="blah2" <?php $this->input_attrs($2); ?>>
The first example is not correct php. Do you know how to write this correctly?
Example 2:
<input type="text" value="blah1" <?php $this->input_attrs(); ?>>
<input type="text" value="blah2" <?php $this->input_attrs_2(); ?>>
If I do end up using a input_attrs_2()
Do I also need my own function get_input_attrs_2()
?
Leave an answer