PHPackages                             mindkomm/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. mindkomm/types

ActiveLibrary

mindkomm/types
==============

Custom Post Type and Taxonomy helper classes for WordPress

v2.5.9(3mo ago)152.7k↓50%1[1 PRs](https://github.com/mindkomm/types/pulls)1MITPHPPHP &gt;=7.0.0CI passing

Since Feb 13Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/mindkomm/types)[ Packagist](https://packagist.org/packages/mindkomm/types)[ RSS](/packages/mindkomm-types/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (32)Used By (1)

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)

```
