public function page_items_menu() {
		$entry_types = papi_get_all_entry_types( [
			'mode'  => 'exclude',
			'types' => 'page'
		] );

		foreach ( $entry_types as $entry_type ) {
			if ( empty( $entry_type->get_menu() ) || empty( $entry_type->name ) ) {
				continue;
			}

			$slug = sprintf(
				'papi/%s/%s',
				$entry_type->get_type(),
				$entry_type->get_id()
			);

			add_submenu_page(
				$entry_type->get_menu(),
				$entry_type->name,
				$entry_type->name,
				$entry_type->capability,
				$slug,
				[$entry_type, 'render']
			);
		}
	}
public function page_items_menu() {
		$entry_types = papi_get_all_entry_types( [
			'mode'  => 'exclude',
			'types' => 'page'
		] );

		foreach ( $entry_types as $entry_type ) {
			if ( empty( $entry_type->get_menu() ) || empty( $entry_type->name ) ) {
				continue;
			}

			$slug = sprintf(
				'papi/%s/%s',
				$entry_type->get_type(),
				$entry_type->get_id()
			);

			add_submenu_page(
				$entry_type->get_menu(),
				$entry_type->name,
				$entry_type->name,
				$entry_type->capability,
				$slug,
				[$entry_type, 'render']
			);
		}
	}
public function page_items_menu ( ) { $ entry_types = papi_get_all_entry_types ( [ 'mode' => 'exclude' , 'types' => 'page' ] ) ; foreach ( $ entry_types as $ entry_type ) { if ( empty ( $ entry_type -> get_menu ( ) ) || empty ( $ entry_type -> name ) ) { continue ; } $ slug = sprintf ( 'papi/%s/%s' , $ entry_type -> get_type ( ) , $ entry_type -> get_id ( ) ) ; add_submenu_page ( $ entry_type -> get_menu ( ) , $ entry_type -> name , $ entry_type -> name , $ entry_type -> capability , $ slug , [ $ entry_type , 'render' ] ) ; } }
Page items menu.

This function will register all entry types
that has a fake post type. Like option types.
Page items menu .