Add custom fields to custom post type programmatically

I am building a plugin which adds a custom post type called meeting, and I want to add custom fields to it. I know there’s the add_post_meta() function, but that requires you to know the post ID you want to add the field to.

How can I add custom fields to a particular post type, similar to the way ACF does it, but programmatically and without plugins?

Read more here:: Add custom fields to custom post type programmatically

Leave a Reply

Your email address will not be published. Required fields are marked *