Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josh-taylor/post-type-factory
A utility to make registering a custom post type in WordPress easier.
https://github.com/josh-taylor/post-type-factory
post-type wordpress wordpress-development wordpress-php-library wordpress-utility wp
Last synced: about 1 month ago
JSON representation
A utility to make registering a custom post type in WordPress easier.
- Host: GitHub
- URL: https://github.com/josh-taylor/post-type-factory
- Owner: josh-taylor
- License: mit
- Created: 2017-06-15T15:54:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-25T11:06:37.000Z (over 7 years ago)
- Last Synced: 2024-10-01T16:17:11.908Z (about 2 months ago)
- Topics: post-type, wordpress, wordpress-development, wordpress-php-library, wordpress-utility, wp
- Language: PHP
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Post Type Factory [![Build Status](https://travis-ci.org/josh-taylor/post-type-factory.svg?branch=master)](https://travis-ci.org/josh-taylor/post-type-factory)
Born out of frustration from registering post types in WordPress. Easily register new post types without having to
specify every option.## Installation
You can install the package through composer.
```sh
composer require josh-taylor/post-type-factory
```## Usage
Full documentation isn't yet available, but you can check out the tests for more use cases.
In general, anything that you can pass through to the `register_post_type()` function you can pass through to the
`create()` method.```php
use JoshTaylor\PostTypeFactory;PostTypeFactory::create('testimonial')->register();
```## Development
Please submit pull requests for new features or bug fixes, any contributions are welcome.
## License
This package is licensed under the MIT license. See the LICENSE file for more details.