lib/Post_Type.php
public static function rename( $post_type, $name_singular, $name_plural ) {
		if ( ! post_type_exists( $post_type ) ) {
			return;
		}

		( new Post_Type_Labels( $post_type, $name_singular, $name_plural ) )->init();
	}
public static function rename( $post_type, $name_singular, $name_plural ) {
		if ( ! post_type_exists( $post_type ) ) {
			return;
		}

		( new Post_Type_Labels( $post_type, $name_singular, $name_plural ) )->init();
	}
public static function rename ( $ post_type , $ name_singular , $ name_plural ) { if ( ! post_type_exists ( $ post_type ) ) { return ; } ( new Post_Type_Labels ( $ post_type , $ name_singular , $ name_plural ) ) -> init ( ) ; }
Renames a post type.

Run this function before the `init` hook.

@since 2.1.1

@param string $post_type     The post type to rename.
@param string $name_singular The new singular name.
@param string $name_plural   The new plural name.
Renames a post type .