You appear to be a bot. Output may be restricted
Description
Add a choice to the properties.
Usage
WPSEO_Config_Field_Choice::add_choice( $value, $label, $aria_label );
Parameters
- $value
- ( string ) required – Value op the option.
- $label
- ( string ) required – Label to display for the value.
- $aria_label
- ( string ) optional – Optional. Aria label text to use.
Returns
void
Source
File name: wordpress-seo/admin/config-ui/fields/class-field-choice.php
Lines:
1 to 12 of 12
public function add_choice( $value, $label, $aria_label = '' ) { $choice = [ 'label' => $label, ]; if ( $aria_label ) { $choice['screenReaderText'] = $aria_label; } $this->properties['choices'][ $value ] = $choice; }