I'm building a plugin that registers a custom post type. I'm looking for a way to limit the number of these types of posts at which point the user can no longer 'Add New' posts to this post type.
Is there any particular filter that would allow me to modify the add/edit screen accordingly, or perhaps something else you can think of?
Any help would be greatly appreciated.
Just to clarify why I've chosen post types over options, however if you still think it's worthwhile to look at options let me know :).
Well the idea is that the plugin is freemium, and paid users will have the chance to create as many as they want, however free users will be restricted. On the paid side, a post type makes sense due to the repetition of structure.
Each post will have a lot of meta data stored in it. Inherently, using an options page would in my mind be straying away from the 'creatable' nature of a post type wherein users can easily add/edit/delete them.