Don’t register your custom post type each time in WordPress
WordPress is really easy to hack into to get things done fast, but tricks to optimize WordPress aren’t that easy to find. I am here to help you optimize your code with easy to do tips. Prevent WordPress from registering your post type on each page load There is a function called post_type_exists( “post_type_name” ) [...]