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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

atamj/wp-custom-post
====================

Class that allows you to create custom posts easily

v1.0.0(4y ago)091MITPHP

Since Mar 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/atamj/wp-custom-post)[ Packagist](https://packagist.org/packages/atamj/wp-custom-post)[ RSS](/packages/atamj-wp-custom-post/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

wp-custom-post
==============

[](#wp-custom-post)

Class that allows you to create custom posts easily

Parameters:
-----------

[](#parameters)

```
/**
 * @param string $post_type     Post type key. Must not exceed 20 characters and may only contain lowercase alphanumeric characters, dashes, and underscores.
 * @param string $menu_name     Name of the post type shown in the menu. Usually plural. Default is value of $labels['name']. Also used for $args['label'].
 * @param array $supports       Core feature(s) the post type supports (['title', 'editor', 'comments', 'revisions', 'trackbacks', 'author', 'excerpt', 'page-attributes', 'thumbnail', 'custom-fields', 'post-formats']). Default all support. Used for $args['supports'].
 * @param array $args           (Optional) Array of arguments for registering a post type.Dafault $args = ['has_archive'=>true, 'public'=>true, 'exclude_from_search'=>true, 'rewrite'=>$menu_name]. See https://developer.wordpress.org/reference/functions/register_post_type
 */

```

Example for all support and best default args:

```
 new CustomPost('test', 'Tests');

```

Example for custom support and best default args:

```
new CustomPost('test', 'Tests', ['title', 'editor', 'thumbnail', 'custom-fields'])

```

Example fo custom support and custom args:

```
new CustomPost('test', 'Tests', ['title', 'editor', 'thumbnail', 'custom-fields'], ['exclude_from_search'=>false])

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1560d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce82ac3899b9fe763e82e91d9685a9df9202417ed5a634c3b6406c3bef2c9a10?d=identicon)[atamj](/maintainers/atamj)

---

Top Contributors

[![atamj](https://avatars.githubusercontent.com/u/50077369?v=4)](https://github.com/atamj "atamj (4 commits)")

### Embed Badge

![Health badge](/badges/atamj-wp-custom-post/health.svg)

```
[![Health](https://phpackages.com/badges/atamj-wp-custom-post/health.svg)](https://phpackages.com/packages/atamj-wp-custom-post)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
