Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/class-wp-post-type.php

WP_Post_Type::get_default_labels()

Method: Returns the default labels for post types.

Source: wp-includes/class-wp-post-type.php:825

Used by 1 function | Uses 2 functions

WP_Post_Type::reset_default_labels()

Method: Resets the cache for the default labels.

Source: wp-includes/class-wp-post-type.php:879

Used by 1 function | Uses 0 functions

register_{$post_type}_post_type_args

Filter Hook: Filters the arguments for registering a specific post type.

Source: wp-includes/class-wp-post-type.php:462

Used by 1 function | Uses 0 functions

WP_Post_Type::get_rest_controller()

Method: Gets the REST API controller for this post type.

Source: wp-includes/class-wp-post-type.php:792

Used by 0 functions | Uses 0 functions

WP_Post_Type::unregister_meta_boxes()

Method: Unregisters the post type meta box if a custom callback was specified.

Source: wp-includes/class-wp-post-type.php:756

Used by 0 functions | Uses 1 function

WP_Post_Type::unregister_taxonomies()

Method: Removes the post type from all taxonomies.

Source: wp-includes/class-wp-post-type.php:767

Used by 0 functions | Uses 2 functions

WP_Post_Type::remove_hooks()

Method: Removes the future post hook action for the post type.

Source: wp-includes/class-wp-post-type.php:778

Used by 0 functions | Uses 1 function

WP_Post_Type::add_supports()

Method: Sets the features support for the post type.

Source: wp-includes/class-wp-post-type.php:610

Used by 0 functions | Uses 1 function

WP_Post_Type::add_rewrite_rules()

Method: Adds the necessary rewrite rules for the post type.

Source: wp-includes/class-wp-post-type.php:634

Used by 0 functions | Uses 7 functions

WP_Post_Type::register_meta_boxes()

Method: Registers the post type meta box if a custom callback was specified.

Source: wp-includes/class-wp-post-type.php:678

Used by 0 functions | Uses 1 function

WP_Post_Type::add_hooks()

Method: Adds the future post hook action for the post type.

Source: wp-includes/class-wp-post-type.php:689

Used by 0 functions | Uses 1 function

WP_Post_Type::register_taxonomies()

Method: Registers the taxonomies for the post type.

Source: wp-includes/class-wp-post-type.php:698

Used by 0 functions | Uses 1 function

WP_Post_Type::remove_supports()

Method: Removes the features support for the post type.

Source: wp-includes/class-wp-post-type.php:711

Used by 0 functions | Uses 0 functions

WP_Post_Type::remove_rewrite_rules()

Method: Removes any rewrite rules, permastructs, and rules for the post type.

Source: wp-includes/class-wp-post-type.php:726

Used by 0 functions | Uses 3 functions

WP_Post_Type

Class: Core class used for interacting with post types.

Source: wp-includes/class-wp-post-type.php:18

Used by 0 functions | Uses 0 functions

WP_Post_Type::__construct()

Method: Constructor.

Source: wp-includes/class-wp-post-type.php:415

Used by 1 function | Uses 1 function

WP_Post_Type::set_props()

Method: Sets post type properties.

Source: wp-includes/class-wp-post-type.php:430

Used by 1 function | Uses 7 functions

register_post_type_args

Filter Hook: Filters the arguments for registering a post type.

Source: wp-includes/class-wp-post-type.php:442

Used by 1 function | Uses 0 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry