Fixes for register post type snippet.