WordPress.org

Make WordPress Core

Opened 6 months ago

Closed 6 months ago

#22818 closed enhancement (duplicate)

Add filter to register_post_type $args list

Reported by: maxaud Owned by:
Priority: normal Milestone:
Component: Post Types Version:
Severity: normal Keywords: 2nd-opinion
Cc:

Description

The ability to filter register_post_type args list would be nice. Some plugins and themes add custom post types with horrible named slugs (ex: mydomain.com/mytheme_portfolio/<post_title>).

I currently don't see a way to modify the rewrite argument to add a customized slug.

Change History (2)

comment:1 scribu6 months ago

  • Keywords 2nd-opinion added

I suggested something similar in #21944.

Not sure if it would make sense to add it, except for built-in post types.

Version 0, edited 6 months ago by scribu (next)

comment:2 scribu6 months ago

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