Opened 11 years ago
Closed 10 years ago
#25432 closed enhancement (duplicate)
Making a custom admin UI for browsing posts is hard
Reported by: | ericlewis | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.8 |
Component: | Posts, Post Types | Keywords: | 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.
One example for this could be a thumbnails (boxes) view of the posts instead of lines (rows) views.