https://github.com/starise/wp-post-type-class
WordPress Post Type class
https://github.com/starise/wp-post-type-class
Last synced: 4 months ago
JSON representation
WordPress Post Type class
- Host: GitHub
- URL: https://github.com/starise/wp-post-type-class
- Owner: starise
- License: mit
- Created: 2015-12-18T15:54:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-19T22:03:38.000Z (over 9 years ago)
- Last Synced: 2024-12-27T04:22:33.891Z (6 months ago)
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPress Post Type Class
A single class to help you build more advanced custom post types quickly.
## Requirements
* PHP >= 5.4
* WordPress >= 3.5## Installation
You can install this plugin via command-line or using the WordPress admin panel.
### via Command-line
Using [Composer](https://getcomposer.org/), add Post Type Class to your project's dependencies.
```sh
composer require starise/wp-post-type-class
```Then activate the plugin via [wp-cli](http://wp-cli.org/commands/plugin/activate/).
```sh
wp plugin activate wp-post-type-class
```### via WordPress Admin Panel
1. Download the [latest zip](https://github.com/starise/wp-post-type-class/archive/master.zip) of this repo.
2. In your WordPress admin panel, navigate to Plugins->Add New
3. Click Upload Plugin
4. Upload the zip file that you downloaded.## Quick Start
Download and declare the use of the class in `functions.php`, then register a new post type:
```php
use Starise\WordPress\PostType as PostType;new PostType('book');
```For more details please [check out the wiki](https://github.com/starise/wp-post-type-class/wiki)