New Book’ ),
‘view_item’ => __( ‘View Book’ ),
‘search_items’ => __( ‘Search Books’ ),
‘not_found’ => __( ‘No books found’ ),
‘not_found_in_trash’ => __( ‘No books found in Trash’ ),
‘parent_item_colon’ => ”
);
$args = array(
‘labels’ => $labels,
‘public’ => true,
‘publicly_queryable’ => true,
‘show_ui’ => true,
‘query_var’ => true,
‘rewrite’ => true,
‘capability_type’ => ‘post’,
‘hierarchical’ => false,
‘menu_position’ => null,
‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’ )
);
register_post_type( ‘book’, $args );
Was this code snippet helpful?
YesNo