src/class-extended-cpt-admin.php
public function post_updated_messages( array $messages ) : array {

		global $post;

		$pto = get_post_type_object( $this->cpt->post_type );

		$messages[ $this->cpt->post_type ] = [
			1 => sprintf(
				( $pto->publicly_queryable ? '%1$s updated. <a href="%2$s">View %3$s</a>' : '%1$s updated.' ),
				esc_html( $this->cpt->post_singular ),
				esc_url( get_permalink( $post ) ),
				esc_html( $this->cpt->post_singular_low )
			),
			2 => 'Custom field updated.',
			3 => 'Custom field deleted.',
			4 => sprintf(
				'%s updated.',
				esc_html( $this->cpt->post_singular )
			),
			5 => isset( $_GET['revision'] ) ? sprintf(
				'%1$s restored to revision from %2$s',
				esc_html( $this->cpt->post_singular ),
				wp_post_revision_title( intval( $_GET['revision'] ), false )
			) : false,
			6 => sprintf(
				( $pto->publicly_queryable ? '%1$s published. <a href="%2$s">View %3$s</a>' : '%1$s published.' ),
				esc_html( $this->cpt->post_singular ),
				esc_url( get_permalink( $post ) ),
				esc_html( $this->cpt->post_singular_low )
			),
			7 => sprintf(
				'%s saved.',
				esc_html( $this->cpt->post_singular )
			),
			8 => sprintf(
				( $pto->publicly_queryable ? '%1$s submitted. <a target="_blank" href="%2$s">Preview %3$s</a>' : '%1$s submitted.' ),
				esc_html( $this->cpt->post_singular ),
				esc_url( add_query_arg( 'preview', 'true', get_permalink( $post ) ) ),
				esc_html( $this->cpt->post_singular_low )
			),
			9 => sprintf(
				( $pto->publicly_queryable ? '%1$s scheduled for: <strong>%2$s</strong>. <a target="_blank" href="%3$s">Preview %4$s</a>' : '%1$s scheduled for: <strong>%2$s</strong>.' ),
				esc_html( $this->cpt->post_singular ),
				esc_html( date_i18n( 'M j, Y @ G:i', strtotime( $post->post_date ) ) ),
				esc_url( get_permalink( $post ) ),
				esc_html( $this->cpt->post_singular_low )
			),
			10 => sprintf(
				( $pto->publicly_queryable ? '%1$s draft updated. <a target="_blank" href="%2$s">Preview %3$s</a>' : '%1$s draft updated.' ),
				esc_html( $this->cpt->post_singular ),
				esc_url( add_query_arg( 'preview', 'true', get_permalink( $post ) ) ),
				esc_html( $this->cpt->post_singular_low )
			),
		];

		return $messages;

	}
public function post_updated_messages( array $messages ) : array {

		global $post;

		$pto = get_post_type_object( $this->cpt->post_type );

		$messages[ $this->cpt->post_type ] = [
			1 => sprintf(
				( $pto->publicly_queryable ? '%1$s updated. <a href="%2$s">View %3$s</a>' : '%1$s updated.' ),
				esc_html( $this->cpt->post_singular ),
				esc_url( get_permalink( $post ) ),
				esc_html( $this->cpt->post_singular_low )
			),
			2 => 'Custom field updated.',
			3 => 'Custom field deleted.',
			4 => sprintf(
				'%s updated.',
				esc_html( $this->cpt->post_singular )
			),
			5 => isset( $_GET['revision'] ) ? sprintf(
				'%1$s restored to revision from %2$s',
				esc_html( $this->cpt->post_singular ),
				wp_post_revision_title( intval( $_GET['revision'] ), false )
			) : false,
			6 => sprintf(
				( $pto->publicly_queryable ? '%1$s published. <a href="%2$s">View %3$s</a>' : '%1$s published.' ),
				esc_html( $this->cpt->post_singular ),
				esc_url( get_permalink( $post ) ),
				esc_html( $this->cpt->post_singular_low )
			),
			7 => sprintf(
				'%s saved.',
				esc_html( $this->cpt->post_singular )
			),
			8 => sprintf(
				( $pto->publicly_queryable ? '%1$s submitted. <a target="_blank" href="%2$s">Preview %3$s</a>' : '%1$s submitted.' ),
				esc_html( $this->cpt->post_singular ),
				esc_url( add_query_arg( 'preview', 'true', get_permalink( $post ) ) ),
				esc_html( $this->cpt->post_singular_low )
			),
			9 => sprintf(
				( $pto->publicly_queryable ? '%1$s scheduled for: <strong>%2$s</strong>. <a target="_blank" href="%3$s">Preview %4$s</a>' : '%1$s scheduled for: <strong>%2$s</strong>.' ),
				esc_html( $this->cpt->post_singular ),
				esc_html( date_i18n( 'M j, Y @ G:i', strtotime( $post->post_date ) ) ),
				esc_url( get_permalink( $post ) ),
				esc_html( $this->cpt->post_singular_low )
			),
			10 => sprintf(
				( $pto->publicly_queryable ? '%1$s draft updated. <a target="_blank" href="%2$s">Preview %3$s</a>' : '%1$s draft updated.' ),
				esc_html( $this->cpt->post_singular ),
				esc_url( add_query_arg( 'preview', 'true', get_permalink( $post ) ) ),
				esc_html( $this->cpt->post_singular_low )
			),
		];

		return $messages;

	}
public function post_updated_messages ( array $ messages ) : array { global $ post ; $ pto = get_post_type_object ( $ this -> cpt -> post_type ) ; $ messages [ $ this -> cpt -> post_type ] = [ 1 => sprintf ( ( $ pto -> publicly_queryable ? '%1$s updated. <a href="%2$s">View %3$s</a>' : '%1$s updated.' ) , esc_html ( $ this -> cpt -> post_singular ) , esc_url ( get_permalink ( $ post ) ) , esc_html ( $ this -> cpt -> post_singular_low ) ) , 2 => 'Custom field updated.' , 3 => 'Custom field deleted.' , 4 => sprintf ( '%s updated.' , esc_html ( $ this -> cpt -> post_singular ) ) , 5 => isset ( $ _GET [ 'revision' ] ) ? sprintf ( '%1$s restored to revision from %2$s' , esc_html ( $ this -> cpt -> post_singular ) , wp_post_revision_title ( intval ( $ _GET [ 'revision' ] ) , false ) ) : false , 6 => sprintf ( ( $ pto -> publicly_queryable ? '%1$s published. <a href="%2$s">View %3$s</a>' : '%1$s published.' ) , esc_html ( $ this -> cpt -> post_singular ) , esc_url ( get_permalink ( $ post ) ) , esc_html ( $ this -> cpt -> post_singular_low ) ) , 7 => sprintf ( '%s saved.' , esc_html ( $ this -> cpt -> post_singular ) ) , 8 => sprintf ( ( $ pto -> publicly_queryable ? '%1$s submitted. <a target="_blank" href="%2$s">Preview %3$s</a>' : '%1$s submitted.' ) , esc_html ( $ this -> cpt -> post_singular ) , esc_url ( add_query_arg ( 'preview' , 'true' , get_permalink ( $ post ) ) ) , esc_html ( $ this -> cpt -> post_singular_low ) ) , 9 => sprintf ( ( $ pto -> publicly_queryable ? '%1$s scheduled for: <strong>%2$s</strong>. <a target="_blank" href="%3$s">Preview %4$s</a>' : '%1$s scheduled for: <strong>%2$s</strong>.' ) , esc_html ( $ this -> cpt -> post_singular ) , esc_html ( date_i18n ( 'M j, Y @ G:i' , strtotime ( $ post -> post_date ) ) ) , esc_url ( get_permalink ( $ post ) ) , esc_html ( $ this -> cpt -> post_singular_low ) ) , 10 => sprintf ( ( $ pto -> publicly_queryable ? '%1$s draft updated. <a target="_blank" href="%2$s">Preview %3$s</a>' : '%1$s draft updated.' ) , esc_html ( $ this -> cpt -> post_singular ) , esc_url ( add_query_arg ( 'preview' , 'true' , get_permalink ( $ post ) ) ) , esc_html ( $ this -> cpt -> post_singular_low ) ) , ] ; return $ messages ; }
Add our post type updated messages.

The messages are as follows:

1 => "Post updated. {View Post}"
2 => "Custom field updated."
3 => "Custom field deleted."
4 => "Post updated."
5 => "Post restored to revision from [date]."
6 => "Post published. {View post}"
7 => "Post saved."
8 => "Post submitted. {Preview post}"
9 => "Post scheduled for: [date]. {Preview post}"
10 => "Post draft updated. {Preview post}"

@param  array $messages An associative array of post updated messages with post type as keys.
@return array           Updated array of post updated messages.
Add our post type updated messages .