-
Notifications
You must be signed in to change notification settings - Fork 0
Post Type
Gene Alyson Fortunado Torcende edited this page Apr 11, 2020
·
3 revisions
accepts 1 parameter - the array of custom post type configuration
ThemePlate()->post_type( $config );
Each custom post type is configured using these following keys:
name
singular
plural
args
array(
'labels' => array() // with `singular` and `plural`
'public' => true,
'show_in_rest' => true,
'rewrite' => array(
'with_front' => false,
),
)