Little code snippet for automatically adding a custom field for a page or post when they are published.