lib/Post_Type_Page.php
public function update_archive_slug( $args, $post_type ) {
		if ( $post_type !== $this->post_type ) {
			return $args;
		}

		$args['has_archive'] = trim(
			wp_make_link_relative( get_permalink( $this->post_id ) ),
			'/'
		);

		return $args;
	}
public function update_archive_slug( $args, $post_type ) {
		if ( $post_type !== $this->post_type ) {
			return $args;
		}

		$args['has_archive'] = trim(
			wp_make_link_relative( get_permalink( $this->post_id ) ),
			'/'
		);

		return $args;
	}
public function update_archive_slug ( $ args , $ post_type ) { if ( $ post_type !== $ this -> post_type ) { return $ args ; } $ args [ 'has_archive' ] = trim ( wp_make_link_relative ( get_permalink ( $ this -> post_id ) ) , '/' ) ; return $ args ; }
Update the archive slug to be the same as the page that should be used for the archive.

@param array  $args      Post type registration arguments.
@param string $post_type Post type name.

@return mixed
Update the archive slug to be the same as the page that should be used for the archive .