src/class-extended-cpt.php
public function extend( WP_Post_Type $pto ) {

		# Merge core with overridden labels
		$this->args['labels'] = array_merge( (array) get_post_type_labels( $pto ), $this->args['labels'] );

		$GLOBALS['wp_post_types'][ $pto->name ]->labels = (object) $this->args['labels'];

	}
public function extend( WP_Post_Type $pto ) {

		# Merge core with overridden labels
		$this->args['labels'] = array_merge( (array) get_post_type_labels( $pto ), $this->args['labels'] );

		$GLOBALS['wp_post_types'][ $pto->name ]->labels = (object) $this->args['labels'];

	}
public function extend ( WP_Post_Type $ pto ) { # Merge core with overridden labels $ this -> args [ 'labels' ] = array_merge ( ( array ) get_post_type_labels ( $ pto ) , $ this -> args [ 'labels' ] ) ; $ GLOBALS [ 'wp_post_types' ] [ $ pto -> name ] -> labels = ( object ) $ this -> args [ 'labels' ] ; }
Extends an existing post type object. Currently only handles labels.

@param WP_Post_Type $pto A post type object.
Extends an existing post type object . Currently only handles labels .