Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/palmtreephp/wp-custom-post-type

:palm_tree: WordPress custom post type class
https://github.com/palmtreephp/wp-custom-post-type

composer-package php wordpress wordpress-custom-post-type

Last synced: about 1 month ago
JSON representation

:palm_tree: WordPress custom post type class

Awesome Lists containing this project

README

        

# :palm_tree: WordPress Custom Post Types

[![License](http://img.shields.io/packagist/l/palmtree/curl.svg)](LICENSE)

Library to assist in the creation of custom post types within WordPress.

## Requirements
* PHP >= 7.1

## Installation
Use composer to add the package to your dependencies:
```bash
composer require palmtree/wp-custom-post-type
```

## Usage

### Basic Usage
```php
'cta',
'public' => false,
]);
```

### Advanced Usage
```php
'project',
'front' => 'my-projects',
'taxonomies' => [
[
'name' => 'Project Tags',
'hierarchical' => false,
],
[
'name' => 'Project Categories',
'singluar_name' => 'Project Category',
]
],
]);
```

## License
Released under the [MIT license](LICENSE)