WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#14153 closed feature request (wontfix)

Specifying an array of parameters for the taxonomy registration

Reported by: surger1976 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: reporter-feedback close
Focuses: Cc:

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 10 years ago.
post.php register_post_type

Download all attachments as: .zip

Change History (4)

@surger1976
10 years ago

post.php register_post_type

#1 @beaulebens
10 years ago

  • Cc beau@… added

#2 @nacin
10 years ago

  • 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?

#3 @nacin
10 years ago

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