WordPress.org

Forums

Dashboard: Pending Review
Multiple Instances (4 posts)

  1. eteich
    Member
    Posted 4 years ago #

    I'm wondering if there is a way to go into the dashboard-pending-review.php file and double it up so I can have 2 widgets for 2 different custom post types.

    http://wordpress.org/extend/plugins/dashboard-pending-review/

  2. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 4 years ago #

    This neglected plugin uses the ancient version of the WordPress widget API where it was hard to make multi-instance widgets.

    I need to rewrite this and my other dashboard widget plugins to use the newer widget API that would make this request a breeze. I'll add it to my todo list.

  3. eteich
    Member
    Posted 4 years ago #

    thanks man, for now I just used an array to pull two post types.

  4. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 4 years ago #

    So actually it turns out the dashboard doesn't use the newer API and is set up for only single instance widgets. That sort of makes sense -- I mean where would you drag in new instances of the widgets from?

    In order to get multiple instances, I'd have to do some crazy hack where I dynamically create multiple independent widgets and I'd rather not do that. :(

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Dashboard: Pending Review
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic