it was checking gimp_export_xmp() not gimp_export_iptc(), probably a copy/paste error.
Attach a file by drag & drop or click to upload