WC_Settings_General::color_picker()
Output a color picker input box.
Метод класса: WC_Settings_General{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Settings_General = new WC_Settings_General(); $WC_Settings_General->color_picker( $name, $id, $value, $desc );
- $name(разное) (обязательный)
- Name of input.
- $id(строка) (обязательный)
- ID of input.
- $value(разное) (обязательный)
- Value of input.
- $desc(строка)
- Description for input.
По умолчанию: ''
Код WC_Settings_General::color_picker() WC Settings General::color picker WC 9.7.1
public function color_picker( $name, $id, $value, $desc = '' ) { echo '<div class="color_box">' . wc_help_tip( $desc ) . ' <input name="' . esc_attr( $id ) . '" id="' . esc_attr( $id ) . '" type="text" value="' . esc_attr( $value ) . '" class="colorpick" /> <div id="colorPickerDiv_' . esc_attr( $id ) . '" class="colorpickdiv"></div> </div>'; }