TaxonomyLabels

Class.

use Saij\WpAppFramework\Post\TaxonomyLabels;

Labels of a taxonomy beyond its name and singular name. A label left at null is derived from the singular and plural name in English ("Add New Genre"); WordPress would otherwise show the labels of tags or categories. The defaults below are those of a taxonomy with the singular name "Genre" and the plural name "Genres".

Constructor

new TaxonomyLabels(?string $searchItems = null, ?string $allItems = null, ?string $parentItem = null, ?string $editItem = null, ?string $viewItem = null, ?string $updateItem = null, ?string $addNewItem = null, ?string $newItemName = null, ?string $notFound = null, ?string $menuName = null, ?string $backToItems = null)
ParameterTypeDefaultDescription
searchItemsstring|nullnullButton that searches terms; default "Search Genres".
allItemsstring|nullnullEntry for all terms, e.g. in the filter of the list of posts; default "All Genres".
parentItemstring|nullnullField of the parent term (hierarchical taxonomies only); default "Parent Genre".
editItemstring|nullnullHeading of the screen that edits a term; default "Edit Genre".
viewItemstring|nullnullLink that views the archive of a term; default "View Genre".
updateItemstring|nullnullButton that saves a term; default "Update Genre".
addNewItemstring|nullnullHeading and button that add a term; default "Add New Genre".
newItemNamestring|nullnullField of the name of a new term; default "New Genre Name".
notFoundstring|nullnullMessage when no terms are found; default "No genres found.".
menuNamestring|nullnullAdmin menu entry; default the plural name, "Genres".
backToItemsstring|nullnullLink back to the list shown after a term was updated; default "← Go to Genres".