I use Wordpress with CiviCRM. I would like to create a custom select field and populate the option values with php. After investigating the forum and the documentation I think I should create a hook (or a plugin in wordpress) for that, but not sure.
Could somebody show me a working example or direct me where to continue?