Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/palmtreephp/wp-custom-post-type
- Owner: palmtreephp
- License: mit
- Created: 2017-03-22T15:18:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T11:01:51.000Z (over 2 years ago)
- Last Synced: 2024-11-09T20:35:40.121Z (about 1 month ago)
- Topics: composer-package, php, wordpress, wordpress-custom-post-type
- Language: PHP
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)