WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 3 months ago

#25432 new enhancement

Making a custom admin UI for browsing posts is hard

Reported by: ericlewis Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.8
Component: Posts, Post Types Keywords: dev-feedback needs-patch
Focuses: administration Cc:

Description

If you want to use a custom UI for browsing posts instead of using the core default WP_List_Table UI, the options you have are hacky at best.

There is no short-circuit hook in wp-admin/edit.php, nay, not even a single hook within the main 'div.wrap' to afford developers to output their markup. This seems like it might be the most straight-forward, familiar option, a la the short-circuit filters in shortcodes.

List Table Factory is not pluggable (#18449), which might've been a hacky option to stuff markup into a custom WP_List_Table object.

We do have the 'load-edit.php' hook, in which we can sniff the $_REQUEST, and stuff a copy of the entirety of wp-admin/edit.php into. This is our first option that could work, but woah that's hacky.

Change History (3)

comment:1 klihelp7 months ago

One example for this could be a thumbnails (boxes) view of the posts instead of lines (rows) views.

comment:2 jrbeilke4 months ago

  • Cc jrbeilke@… added

comment:3 nacin3 months ago

  • Component changed from Administration to Posts, Post Types
  • Focuses administration added
Note: See TracTickets for help on using tickets.