From the course: WordPress: Custom Post Types and Taxonomies
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Custom post type capability settings - WordPress Tutorial
From the course: WordPress: Custom Post Types and Taxonomies
Custom post type capability settings
- [Instructor] With all of our labels defined, let's scroll down to Settings. These primarily have to do with displaying and searching for the post type. We have great descriptions and default values for each. Most we'll keep at that default value, but let's walk through them. Public, Publicly Queryable, and Show UI all have to do with whether users can see and query the post type on the front end and in the dashboard. This might sound a bit strange to include, and in most cases, we definitely do want users to interact with our post types, but sometimes there are instances where the post type actually supports another function. Examples of this, in core, are revisions, menus, and custom CSS. Show in Nav Menus let's us decide if we want users to add out post types to the menu areas. Show in REST API will enable the REST API. This is necessary if you want to make the data accessible outside of WordPress. As well if you want to use the block editor. The following settings allow you to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.