• Is my understanding of these two correct?

    When using register_post_type(), the first parameter, sets the value of post_type to be written in the DB. Therefore, changing the value of the first parameter of the function is not recommended if posts of the declared post type have already been created. If it is done anyway, then there will be post data in the DB which simply lay there forever, because WP won’t manage them in any way.

    The rewrite argument, states the slug to be used in URLs for posts of this post type. It can be changed freely and safely because it only affects the URL of posts and nothing else.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing register_post_type() first param and the rewrite arg’ is closed to new replies.