Search the blog
$field         = \ProcessWire\wire('fields')->get('yourFieldName');
$fieldtype     = $field->type;
$options       = $fieldtype->getOptions($field);

$option        = new \ProcessWire\SelectableOption();

$option->title = 'Your select option title goes here';

$options->add($option);

$fieldtype->setOptions($field, $options);
Tim Bennett is a web designer and developer. He has a First Class Honours degree in Computing from Leeds Metropolitan University and currently runs his own one-man web design company, Texelate.