From the course: WordPress: Custom Post Types and Taxonomies

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Customizing your post type labels

Customizing your post type labels - WordPress Tutorial

From the course: WordPress: Custom Post Types and Taxonomies

Start my 1-month free trial

Customizing your post type labels

- [Instructor] Now that we have a good structural foundation for our business type, let's take a look at how we can customize it even further. In the CPT UI plugin you might remember that there were additional labels and settings that had their own sections. And each of these correspond with the arrays that we've set up, labels and arguments. Let's first look at the labels we can customize. We're going to head to the WordPress codex for the reference to register post type. This website will be your best friend because it shows us exactly what we need to pass to the labels and arguments arrays. If we scroll down the page to the argument section we'll see a full list of all of the arguments that could be passed to register post type. And in the labels array, we'll see a full list of all of the labels that we can customize. So if we go back to our code, let's start with customizing the featured image labels. In the register.php function, we are going to start by setting up some new key…

Contents