protected function get_labels() {
		$results = [];

		foreach ( $this->get_post_types() as $post_type ) {
			if ( post_type_exists( $post_type ) ) {
				$post_type_object    = get_post_type_object( $post_type );
				$results[$post_type] = $post_type_object->labels->menu_name;
			}
		}

		return $results;
	}
protected function get_labels() {
		$results = [];

		foreach ( $this->get_post_types() as $post_type ) {
			if ( post_type_exists( $post_type ) ) {
				$post_type_object    = get_post_type_object( $post_type );
				$results[$post_type] = $post_type_object->labels->menu_name;
			}
		}

		return $results;
	}
protected function get_labels ( ) { $ results = [ ] ; foreach ( $ this -> get_post_types ( ) as $ post_type ) { if ( post_type_exists ( $ post_type ) ) { $ post_type_object = get_post_type_object ( $ post_type ) ; $ results [ $ post_type ] = $ post_type_object -> labels -> menu_name ; } } return $ results ; }
Get labels from post types.

@return array
Get labels from post types .