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
2 Answers
Reset to default 0Whenever 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:
- Remove the standard edit link from admin menu, using
remove_menu_page
/remove_submenu_page
- Add your own menu element, that will include customized file
- For that customized file, copy the most part from core and just edit what you want.
本文标签: wp adminCustomize a WPPostsListTable class
版权声明:本文标题:wp admin - Customize a WP_Posts_List_Table class 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736282268a1926591.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论