PostTypeLabels

Class.

use Saij\WpAppFramework\Post\PostTypeLabels;

Labels of a post type beyond its name and singular name. A label left at null is derived from the singular and plural name in English ("Add New Event"); WordPress would otherwise show the labels of posts. The defaults below are those of a post type with the singular name "Event" and the plural name "Events".

Constructor

new PostTypeLabels(?string $addNew = null, ?string $addNewItem = null, ?string $editItem = null, ?string $newItem = null, ?string $viewItem = null, ?string $viewItems = null, ?string $searchItems = null, ?string $notFound = null, ?string $notFoundInTrash = null, ?string $parentItemColon = null, ?string $allItems = null, ?string $archives = null, ?string $attributes = null, ?string $menuName = null, ?string $itemPublished = null, ?string $itemUpdated = null)
ParameterTypeDefaultDescription
addNewstring|nullnullButton that adds a post; default "Add New Event".
addNewItemstring|nullnullHeading of the screen that adds a post; default "Add New Event".
editItemstring|nullnullHeading of the edit screen; default "Edit Event".
newItemstring|nullnullTitle of the page of a new post; default "New Event".
viewItemstring|nullnullLink that views a post; default "View Event".
viewItemsstring|nullnullLink that views the archive of the type; default "View Events".
searchItemsstring|nullnullButton that searches posts; default "Search Events".
notFoundstring|nullnullMessage when no posts are found; default "No events found.".
notFoundInTrashstring|nullnullMessage of an empty trash; default "No events found in Trash.".
parentItemColonstring|nullnullPrefix of the parent post (hierarchical post types); default "Parent Event:".
allItemsstring|nullnullAdmin submenu entry of the list of posts; default "All Events".
archivesstring|nullnullThe archive in the navigation menu editor; default "Event Archives".
attributesstring|nullnullTitle of the page attributes box; default "Event Attributes".
menuNamestring|nullnullAdmin menu entry; default the plural name, "Events".
itemPublishedstring|nullnullNotice after a post was published; default "Event published.".
itemUpdatedstring|nullnullNotice after a post was updated; default "Event updated.".