How to automatically create custom field on post draft or publish with one of several offered values? For example I wish to create custom field named "random_color" with one of potential values: "white", "green", "blue"...
Any of values is acceptable, so how to create function which will create post custom field with one of values (randomly chosen from defined) on post draft or publish?
Aucun commentaire:
Enregistrer un commentaire