Unlock your potential with a Pro Membership
Here is where you propel your career forward. Come join us today. Learn more.
Get the Registered Post Types
Lab: WordPress Built-in Post Type Basics
Video Runtime: 14:06
There will be times when you need to grab all the registered post types. Using the WordPress construct get_post_types()
, you can specify what you want. For example, you fetch all of the custom post types, built-in ones, or all of them. In this episode, you’ll work with this instruction and go into WordPress core to see what it does for you.
Keep It Simple, Stupid (KISS) - the best kiss you'll get in code.
Episodes
Total Lab Runtime: 00:49:58
- 1 Lab Introductionfree 01:54
- 2 What is a Post Type?free 12:25
- 3 Get the Registered Post Typespro 14:06
- 4 What are Post Type Features?pro 03:52
- 5 Add a New Post Type Featurepro 08:58
- 6 Remove a Post Type Featurepro 04:05
- 7 What is a Hierarchy?pro 03:16
- 8 Wrap it Uppro 01:22