Opened 3 years ago

Closed 3 years ago

#14153 closed feature request (wontfix)

Specifying an array of parameters for the taxonomy registration

Reported by: surger1976 Owned by:
Priority: normal Milestone:
Component: Post Types Version:
Severity: normal Keywords: reporter-feedback close
Cc: beau@…

Description

Patch allows you to specify an $args [ "taxonomies" ] with $args for register taxonomy. Example:

$args [ "taxonomies" ] = array("custom_taxonomy" => array("show_ui" => true, "show_menu" => false ) );

Attachments (1)

post.patch (616 bytes) - added by surger1976 3 years ago.
post.php register_post_type

Download all attachments as: .zip

Change History (4)

post.php register_post_type

  • Cc beau@… added
  • Keywords reporter-feedback close added

I don't see why we need to overload register_post_type to support register_taxonomy. If you need to register a taxonomy, you should follow up with a call to register_taxonomy. register_taxonomy_for_object_type is enough, no?

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.