src/Meta/Collection.php
public static function get_collection_title( $post_type ) {
		$post_type_name = 'Blog';

		if ( 'post' !== $post_type ) {
			$type = get_post_type_object( $post_type );
			$post_type_name = $type->labels->name;
		}

		$filter_name = sprintf(
			self::TITLE_FILTER,
			is_string( $post_type ) ? $post_type : $post_type_name
		);
		$collection_title = sprintf(
			'%s - %s',
			$post_type_name, get_bloginfo( 'title' )
		);
		return apply_filters( $filter_name, $collection_title );
	}
public static function get_collection_title( $post_type ) {
		$post_type_name = 'Blog';

		if ( 'post' !== $post_type ) {
			$type = get_post_type_object( $post_type );
			$post_type_name = $type->labels->name;
		}

		$filter_name = sprintf(
			self::TITLE_FILTER,
			is_string( $post_type ) ? $post_type : $post_type_name
		);
		$collection_title = sprintf(
			'%s - %s',
			$post_type_name, get_bloginfo( 'title' )
		);
		return apply_filters( $filter_name, $collection_title );
	}
public static function get_collection_title ( $ post_type ) { $ post_type_name = 'Blog' ; if ( 'post' !== $ post_type ) { $ type = get_post_type_object ( $ post_type ) ; $ post_type_name = $ type -> labels -> name ; } $ filter_name = sprintf ( self :: TITLE_FILTER , is_string ( $ post_type ) ? $ post_type : $ post_type_name ) ; $ collection_title = sprintf ( '%s - %s' , $ post_type_name , get_bloginfo ( 'title' ) ) ; return apply_filters ( $ filter_name , $ collection_title ) ; }
Get the title for a collection.

@param string $post_type The post type.
@return mixed
Get the title for a collection .