input – How to use input_attrs function two or more times?

Question

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() ?

0
Angel Hess 1 month 2023-02-09T15:24:53-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse