2017 © Pedro Peláez
 

library wp-custom-post-type

WordPress Custom Post Types

image

palmtree/wp-custom-post-type

WordPress Custom Post Types

  • Friday, April 7, 2017
  • by palmtree
  • Repository
  • 1 Watchers
  • 1 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

:palm_tree: WordPress Custom Post Types

License, (*1)

Library to assist in the creation of custom post types within WordPress., (*2)

Requirements

  • PHP >= 7.1

Installation

Use composer to add the package to your dependencies:, (*3)

composer require palmtree/wp-custom-post-type

Usage

Basic Usage

<?php
use Palmtree\WordPress\CustomPostType\CustomPostType;

$project = new CustomPostType('project');

$callToAction = new CustomPostType([
    'post_type' => 'cta',
    'public' => false,
]);

Advanced Usage

<?php
use Palmtree\WordPress\CustomPostType\CustomPostType;

$project = new CustomPostType([
    'post_type' => 'project',
    'front' => 'my-projects',
    'taxonomies' => [
        [
            'name' => 'Project Tags',
            'hierarchical' => false,
        ],
        [
            'name' => 'Project Categories',
            'singluar_name' => 'Project Category',
        ]
    ],
]);

License

Released under the MIT license, (*4)

The Versions

07/04 2017

dev-master

9999999-dev

WordPress Custom Post Types

  Sources   Download

MIT

The Requires

 

07/04 2017

v0.9.6

0.9.6.0

WordPress Custom Post Types

  Sources   Download

MIT

The Requires

 

22/03 2017

v0.9.5

0.9.5.0

WordPress Custom Post Types

  Sources   Download

MIT

The Requires