WC_Settings_Emails::email_color_palette()publicWC 1.0

Creates the React mount point for the email color palette title.

Метод класса: WC_Settings_Emails{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Settings_Emails = new WC_Settings_Emails();
$WC_Settings_Emails->email_color_palette( $value );
$value(массив) (обязательный)
Field value array.

Код WC_Settings_Emails::email_color_palette() WC 9.7.1

<?php
public function email_color_palette( $value ) {
	$default_colors = $this->get_email_default_colors();

	?>
	<hr class="wc-settings-email-color-palette-separator" />
	<h2 class="wc-settings-email-color-palette-title"><?php echo esc_html( $value['title'] ); ?></h2>
	<div
		class="wc-settings-email-color-palette-buttons"
		id="wc_settings_email_color_palette_slotfill"
		data-default-colors="<?php echo esc_attr( wp_json_encode( $default_colors ) ); ?>"
		<?php echo wp_theme_has_theme_json() ? 'data-has-theme-json' : ''; ?>
	></div>
	<table class="form-table">
	<?php
}