[Wordpress] Creating content types the easy way
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets Small javascript change May 29, 2017
resources Small javascript change May 29, 2017
src Fix view path Jan 3, 2018
.gitignore Gulp Jan 17, 2016
.hound.yml Hound Dec 5, 2016
.travis.yml travis-ci Mar 9, 2016
bootstrap.php Fix the paths Nov 4, 2017
composer.json Update composer.json Jun 22, 2017
cuztom.php Update cuztom.php Jun 22, 2017
gulpfile.js Remove stuff Jan 30, 2017
license.txt Update license.txt Feb 12, 2018
package.json Remove stuff Jan 30, 2017
readme.md Fix name in readme Mar 15, 2017
yarn.lock camelCase + improvements Dec 12, 2016

readme.md

Cuztom

Cuztom is a Wordpress library, which can be used to easily register Post Types, Taxonomies, Meta Boxes, Term Meta, User Meta. Please comment, review, watch, fork and report bugs. Requires Wordpress 4.4+. :)

Basic usage

Add Custom Post Types

$book = register_cuztom_post_type('Book');

Add Custom Taxonomies

To add Custom Taxonomies to the newly created Post Type, simply call this method.

$book->addTaxonomy('Author');

You can also call this as a seperate function like this. The second parameter is the Post Type name.

$taxonomy = register_cuztom_taxonomy('Author', 'book');

Add Meta Boxes

Add Meta Boxes.

register_cuztom_meta_box(
    'meta_box_id',
    'book',
    array(
        'title'     => 'Book Info',
        'fields'    => array(
            'id'           => '_author',
            'label'        => 'Author',
            'description'  => 'Just a little description',
            'type'         => 'text'
        )
    )
);

Documentation

See the documentation for advanced guides, changelog.