Unexpected ‘{‘ in field name when doing string formatting
You need to double any { or } that are not part of a formatting placeholder. For example, you have: function admin_add_{fieldname}_field( $fields ) { [….] } in the string. The { at the end of the first line and } on the last are not part of a placeholder. Replace them with {{ and … Read more