2017 © Pedro Peláez
 

library content-types

Create WordPress content types and taxonomies more easier.

image

wenprise/content-types

Create WordPress content types and taxonomies more easier.

  • Saturday, July 14, 2018
  • by iwillhappy1314
  • Repository
  • 1 Watchers
  • 0 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 17 % Grown

The README.md

Wenprise Content Types

Create WordPress content types and taxonomies more easier., (*1)

Register Post type

wprs_types( "work", "Works", [ 'title', 'editor', 'thumbnail'], true, false, 'dashicons-art' );

Params

```@param string $slug Post type slug @param string $name Post type name in the menu and page title @param array $support The functions post type support @param boolean $is_publish Is publish in frontend @param boolean $hierarchical is hierarchical @param string $icon the dashicon of the dashboard menu, (*2)

### Filters

 - wprs_type_labels_$slug: modify the post type labels
 - wprs_type_args_$slug: modify the args to register the post type

## Register Taxonomy

```php
wprs_tax( "work_type", 'work', "Work Type", true );

Params

@param string       $tax_slug     Taxonomy slug
@param string|array $post_type    the post type of the taxonomy registered to 
@param string       $tax_name     Taxonomy name 
@param boolean      $hierarchical is hierarchical

Filters

  • wprs_type_labels_$slug: modify the post type labels
  • wprs_type_args_$slug: modify the args to register the post type
  • wprs_tax_types_$slug: Modify the post types taxonomy registered to

The Versions

14/07 2018

dev-master

9999999-dev

Create WordPress content types and taxonomies more easier.

  Sources   Download

MIT

The Requires

 

31/01 2018

1.0.2

1.0.2.0

Create WordPress content types and taxonomies more easier.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

30/01 2018

1.0.1

1.0.1.0

Create WordPress content types and taxonomies more easier.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

22/01 2018

1.0

1.0.0.0

Create WordPress content types and taxonomies more easier.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

09/01 2018

v0.2-beta

0.2.0.0-beta

Create WordPress content types and taxonomies more easier.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

30/12 2017

v0.1-beta

0.1.0.0-beta

Create WordPress content types and taxonomies more easier.

  Sources   Download

MIT

The Requires

  • php >=5.6