WC_Settings_Emails::email_color_palette()
Creates the React mount point for the email color palette title.
Method of the class: WC_Settings_Emails{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Settings_Emails = new WC_Settings_Emails(); $WC_Settings_Emails->email_color_palette( $value );
- $value(array) (required)
- Field value array.
WC_Settings_Emails::email_color_palette() WC Settings Emails::email color palette code 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 }