Which post_types are reserved in WordPress?

In WordPress, there are several reserved post types that the system uses to store and organize content. Here are the main ones:

  1. post – The default post type for regular blog posts.
  2. page – The post type for pages (e.g., “About Us,” “Contact”).
  3. attachment – Used to store media files (images, videos, and other files) uploaded to the system.
  4. revision – Stores revisions of posts (drafts and changes) for tracking modifications.
  5. nav_menu_item – For navigation menu items.
  6. custom_css – Stores custom CSS styles added via the “Appearance” → “Customize” panel.
  7. customize_changeset – Stores changes made in the Customizer settings.
  8. feedback – Used to store feedback from users, such as comments or reviews, in some cases related to plugins or themes.

In addition to these standard types, WordPress allows you to create your own custom post types, for example, for products in an online store, events, or other entities needed in your project.

Important note: These post types are reserved and cannot be deleted, but their behavior can be modified through filters and hooks.

How useful is the publication?

Click on a star to rate it!

Average score 5 / 5. Number of grades: 1

No ratings yet. Rate it first.

Similar posts

What data can a post type order WooCommerce store?

In WooCommerce, an order (post type order) stores a variety of data that is essential for order processing and management. Here are the main categories of data that an order object (WC_Order) can contain: These data can be retrieved and updated using the WooCommerce API and functions like WC_Order and order meta functions.
Read more

WordPress Template Hierarchy full guide

A guide to the template hierarchy in WordPress All modern WordPress themes consist of templates, style sheets, javascript, and images. Together, these files determine how your site will look to users. Templates with specific names affect certain areas of your website. Generally, a WordPress theme should contain templates for displaying categories, dates, archives, individual posts,…
Read more

What are plugins in WordPress and how do they work?

If you’re new to WordPress, you’re probably asking yourself: “What are plugins in WordPress?” This is a fairly common question because, in addition to introducing one of many new terms into your vocabulary, WordPress plugins are also an important building block of every single WordPress site. This article will answer your question, and then we’ll…
Read more