Skip to content

abhinavsood/Wordpress-Cuztom-Helper

master
Switch branches/tags
Code
This branch is 3 commits behind gizburdt:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

A helper class to make the life of Wordpress developers easier.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 84.0%
  • CSS 8.8%
  • JavaScript 7.2%