Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

When do I create the Custom Post Type, does it only need to be done once when the plugin is installed (so once), or do I need to do it each time in the constructor? Or does it not matter?

share|improve this question

1 Answer 1

Post types and taxonomies have to be registered on 'init' for each request. Even the built-in post types are registered this way.

The posts for your post type are stored permanently in your data base.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.