choices = array( //phpcs:ignore WordPress.WP.I18n.TextDomainMismatch, WordPress.WP.I18n.MissingTranslatorsComment 'left' => __('Align left', 'woocommerce-pdf-product-vouchers'), //phpcs:ignore WordPress.WP.I18n.TextDomainMismatch 'center' => __('Align center', 'woocommerce-pdf-product-vouchers'), //phpcs:ignore WordPress.WP.I18n.TextDomainMismatch 'right' => __('Align right', 'woocommerce-pdf-product-vouchers'), ); parent::__construct($manager, $id, $args); } public function enqueue() { // enqueue control script in Customizer } public function render_content() { $this_value = $this->value(); $name = '_customize-radio-' . $this->id; ?> link(); checked(! $this_value, true); ?> /> choices as $value => $label) : ?>