properties['choices'] = array(); } /** * Add a choice to the properties. * * @param string $value Value op the option. * @param string $label Label to display for the value. * @param string $aria_label Optional. Aria label text to use. */ public function add_choice( $value, $label, $aria_label = '' ) { $choice = array( 'label' => $label, ); if ( $aria_label ) { $choice['screenReaderText'] = $aria_label; } $this->properties['choices'][ $value ] = $choice; } }