admin管理员组

文章数量:1122832

How can I customize output of tables of records in wp-admin/edit.php? What options are available for editing display_tablenav('top') and display_tablenav('bottom') before outputting in class WP_Posts_List_Table?

I would like to insert my block between the table where records are displayed and the filters, for example: <h3>Titlle</h3>. No matter what. The Codex is written:

This class's access is marked as private. That means it is not intended for use by plugin and theme developers, but only by other core functions and classes.

Maybe there is some way that does not change the kernel.

How can I customize output of tables of records in wp-admin/edit.php? What options are available for editing display_tablenav('top') and display_tablenav('bottom') before outputting in class WP_Posts_List_Table?

I would like to insert my block between the table where records are displayed and the filters, for example: <h3>Titlle</h3>. No matter what. The Codex is written:

This class's access is marked as private. That means it is not intended for use by plugin and theme developers, but only by other core functions and classes.

Maybe there is some way that does not change the kernel.

Share Improve this question edited Sep 7, 2013 at 3:42 brasofilo 22.1k8 gold badges69 silver badges264 bronze badges asked Aug 23, 2013 at 5:00 Vitaliy KukinVitaliy Kukin 264 bronze badges 4
  • 2 Could you be more specific on what exactly do you wish to achieve? – Laniakea Commented Aug 23, 2013 at 11:28
  • I would like to insert my block between the table where records are displayed and the filters – Vitaliy Kukin Commented Aug 23, 2013 at 14:20
  • And what kind of a block? – Laniakea Commented Aug 23, 2013 at 15:01
  • Any block. For example: <h3>Titlle</h3>. No matter what. The codex is written: "This class's access is marked as private. That means it is not intended for use by plugin and theme developers, but only by other core functions and classes." Maybe there is some way that does not change the kernel – Vitaliy Kukin Commented Aug 23, 2013 at 15:25
Add a comment  | 

2 Answers 2

Reset to default 0

Whenever you find apply_filters() or do_action in the core files, you'll have an entry point.

If not, jQuery is never enough. And case it's not enough, some heavy trickery is always available.

How can I customize output of tables of records in wp-admin/edit.php?

You can't. @brasofilo explained you why in his answer.

A workaround:

  1. Remove the standard edit link from admin menu, using remove_menu_page / remove_submenu_page
  2. Add your own menu element, that will include customized file
  3. For that customized file, copy the most part from core and just edit what you want.

本文标签: wp adminCustomize a WPPostsListTable class