See the register_post_type() function for accepted arguments for $args. Will populate object properties from the provided arguments and assign other default properties based on that information.
Parameters
$post_typestring
Post type key.
$argsarray|stringoptional
Array or string of arguments for registering a post type. See register_post_type() for information on accepted arguments. Default empty array.Default: array()
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/class-wp-post-type.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.