[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/ -> class-wp-post-type.php (summary)

Post API: WP_Post_Type class

File Size: 679 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 12 functions

  __construct()
  set_props()
  add_supports()
  add_rewrite_rules()
  register_meta_boxes()
  add_hooks()
  register_taxonomies()
  remove_supports()
  remove_rewrite_rules()
  unregister_meta_boxes()
  unregister_taxonomies()
  remove_hooks()

Functions
Functions that are not part of a class:

__construct( $post_type, $args = array()   X-Ref
Constructor.

Will populate object properties from the provided arguments and assign other
default properties based on that information.

param: string       $post_type Post type key.
param: array|string $args      Optional. Array or string of arguments for registering a post type.
since: 4.6.0

set_props( $args )   X-Ref
Sets post type properties.

param: array|string $args Array or string of arguments for registering a post type.
since: 4.6.0

add_supports()   X-Ref
Sets the features support for the post type.

since: 4.6.0

add_rewrite_rules()   X-Ref
Adds the necessary rewrite rules for the post type.

since: 4.6.0

register_meta_boxes()   X-Ref
Registers the post type meta box if a custom callback was specified.

since: 4.6.0

add_hooks()   X-Ref
Adds the future post hook action for the post type.

since: 4.6.0

register_taxonomies()   X-Ref
Registers the taxonomies for the post type.

since: 4.6.0

remove_supports()   X-Ref
Removes the features support for the post type.

since: 4.6.0

remove_rewrite_rules()   X-Ref
Removes any rewrite rules, permastructs, and rules for the post type.

since: 4.6.0

unregister_meta_boxes()   X-Ref
Unregisters the post type meta box if a custom callback was specified.

since: 4.6.0

unregister_taxonomies()   X-Ref
Removes the post type from all taxonomies.

since: 4.6.0

remove_hooks()   X-Ref
Removes the future post hook action for the post type.

since: 4.6.0



Generated: Mon Jul 22 01:00:03 2019 Cross-referenced by PHPXref 0.7.1