Skip to content
[Wordpress] A helper to make the life of developers easier.
PHP JavaScript CSS
Find file
Latest commit 30d8b10 @gizburdt Merge branch '2.9.x'
Conflicts:
	cuztom.php
Failed to load latest commit information.
assets Remove ending line
classes Fix #351
functions Taxonomy based term meta
.gitignore Merge branch '2.9.x'
composer.json Version 2.9.9
cuztom.php Merge branch '2.9.x'
license.txt license file
readme.md Merge branch '2.9.x'

readme.md

Cuztom

This helper can be used to quickly register Custom Post Types, Taxonomies, Meta Boxes, Menu Pages and Sidebars within your Wordpress projects. Please comment, review, watch, fork and report bugs.

Version: 2.9.18
Supports: 3.5 - 4.3

Basic usage

Add Custom Post Types

$book = register_cuztom_post_type( 'Book' );

Note: If you're using Custom Post Types, don't forget to flush rewrite rules on activation.

Add Custom Taxonomies

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

$book->add_taxonomy( 'Author' );

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

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

Add Meta Boxes

Add Meta Boxes.

$book->add_meta_box(
    'meta_box_id',
    'Book Info',
    array(
        array(
            'name'          => 'author',
            'label'         => 'Author',
            'description'   => 'Just a little description',
            'type'          => 'text'
        )
    )
);

Documentation

See the documentation for advanced guides.

Something went wrong with that request. Please try again.