PHPackages                             horttcore/wp-custom-post-type - 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. horttcore/wp-custom-post-type

Abandoned → [ralfhortt/wp-custom-post-type](/?search=ralfhortt%2Fwp-custom-post-type)Library[Utility &amp; Helpers](/categories/utility)

horttcore/wp-custom-post-type
=============================

A custom post type helper

2.0.0(3y ago)03391MITPHP

Since Jan 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Horttcore/wp-custom-post-type)[ Packagist](https://packagist.org/packages/horttcore/wp-custom-post-type)[ RSS](/packages/horttcore-wp-custom-post-type/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)DependenciesVersions (4)Used By (1)

Custom Post Type Helper Class
=============================

[](#custom-post-type-helper-class)

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

[](#installation)

`composer require ralfhortt/wp-custom-post-type`

Usage
-----

[](#usage)

Extend the abstract class `RalfHortt\CustomPostType\PostType` and overwrite following methods:

- `getConfig()`
- `getLabels()`
- `getPostUpdateMessage( \WP_Post $post, string $postType, \WP_Post_Type $postTypeObjects )`

The extending class *MUST* define protected class variable `slug`

Example
-------

[](#example)

```
