$internal_name
$internal_name : string
Internal name for the custom post type
The main CustomPostType Class. You need to extend this class in order to use it.
addField(string $id, string $label, string $meta_box, string $type, array $options = array())
Add a field to a custom metabox
| string | $id | Field's id, must be unique. It will be the meta key. |
| string | $label | Label for admin editing |
| string | $meta_box | Custom metaboxe's id |
| string | $type | Field type (editor|text|date|time|file|textarea|select|number) |
| array | $options | List of options for select with key => value |
addCustomColumn(string $id, string $label, boolean $sort, boolean $type = false)
Add a custom column for the listing page
| string | $id | Column's id, must be unique |
| string | $label | Column's name |
| boolean | $sort | Is the column sortable |
| boolean | $type | The type of the content to display (editor|text|date|time|file|textarea|select|number) |