Support » Developing with WordPress » WP_Post_Type is more prefer than register_post_type?

  • register_post_type is a wrapper of WP_Post_Type.

    But register_post_type left only for back compatibility as I head. Is not it?
    What we should prefer for future?

Viewing 1 replies (of 1 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    If you’re making a new post type, use register_post_type(). It’s not just a wrapper, it does a bunch of other setup stuff too.

Viewing 1 replies (of 1 total)
  • The topic ‘WP_Post_Type is more prefer than register_post_type?’ is closed to new replies.