nadaoneal
Member
Posted 15 years ago #
I'm looking to make two major changes to the My Blogs page:
- add the user's role to the blog listing
- add an additional SQL query below the listing of blogs
Is there a smarter/better way to do this than to edit wp-admin/blogs.php ? It doesn't look like this page is "pluggable".
Thanks.
Use remove_action to disable (one or all of) the three functions that create the blog listing page, add the menu, and update the settings. Three My Blogs functions are in mu.php.
Add your own plugged in page the same way.
nadaoneal
Member
Posted 15 years ago #
I probably should have mentioned that I'm using WP 2.7.1 - I see that your solution will work in the latest code, but not the version I'm using, which doesn't have e.g. function blogs_page_init(), but rather has blogs.php build the page. Thanks for your help...
nadaoneal
Member
Posted 15 years ago #
Also, I'll post my solution for posterity once I have it, but I think it will only be useful to people who are stuck on 2.7.1 like me. (Which I hopefully won't be for much longer.)
@nadaoneal: It would be a good thing to upgrade to the latest version as there have been some important security patches since 2.7.1