PHPackages                             mindkomm/theme-lib-custom-types - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mindkomm/theme-lib-custom-types

Abandoned → [mindkomm/types](/?search=mindkomm%2Ftypes)Library[Utility &amp; Helpers](/categories/utility)

mindkomm/theme-lib-custom-types
===============================

Custom Post Type and Taxonomy helper classes for WordPress

v2.6.0(2mo ago)151802MITPHPPHP ^8.2CI passing

Since Feb 13Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/mindkomm/types)[ Packagist](https://packagist.org/packages/mindkomm/theme-lib-custom-types)[ RSS](/packages/mindkomm-theme-lib-custom-types/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (1)Versions (34)Used By (0)

Types
=====

[](#types)

Custom Post Types and Taxonomy helper classes for WordPress projects.

- Register Custom Post Types and Taxonomies through an array notation. Labels will be set accordingly. Currently, English, German and Dutch are supported.
- Change the query arguments for posts in the front- and backend via a list of arguments, e.g. to set a custom post order wit the [`query`](#query) option.
- Change the admin columns for posts in the backend via a list of arguments.
- Set a specific page as the archive page for a custom post type with the [`page_for_archive`](#page_for_archive) option.
- Set post slugs dynamically when posts are saved.

Table of Contents
-----------------

[](#table-of-contents)

- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Register post types](#register-post-types)
    - [query](#query)
    - [admin\_columns](#admin_columns)
        - [Type](#type)
        - [The `meta` and `acf` types](#the-meta-and-acf-types)
        - [The `thumbnail` type](#the-thumbnail-type)
        - [The `image` type](#the-image-type)
        - [Existing columns and column order](#existing-columns-and-column-order)
    - [page\_for\_archive](#page_for_archive)
        - [is\_singular\_public](#is_singular_public)
        - [customizer\_section](#customizer_section)
        - [show\_post\_state](#show_post_state)
        - [Use page in template](#use-page-in-template)
- [Update existing post types](#update-existing-post-types)
    - [Change settings for a post type](#change-settings-for-a-post-type)
    - [Change post type support](#change-post-type-support)
    - [Rename a post type](#rename-a-post-type)
- [Change admin column settings for existing post type](#change-admin-column-settings-for-existing-post-type)
- [Register taxonomies](#register-taxonomies)
- [Update existing taxonomies](#update-existing-taxonomies)
    - [Change settings for a taxonomy](#change-settings-for-a-taxonomy)
    - [Rename a taxonomy](#rename-a-taxonomy)
    - [Unregister taxonomies](#unregister-taxonomies)
- [Customize a post slug](#customize-a-post-slug)
- [Support](#support)

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require mindkomm/types
```

Register post types
-------------------

[](#register-post-types)

```
