我发现Quick Review Post Access (图1)哪一个起作用。它并不完美;我希望有一个小圆圈,但它也能起到同样的作用,甚至更好,它可以直接链接到过滤掉非草稿的页面,从而更容易跟踪和处理不完整的帖子。它甚至适用于待定和未来的职位
只需编辑文件即可使用圆圈(图2)Quick_Review_Post_Access.php
因此:
- add_submenu_page( $path, __( \'Drafts\' ), sprintf( __( \'Drafts (%d)\' ), $num_posts->draft ), $post_type->cap->edit_posts, "edit.php?post_type=$name&post_status=draft" );
+ add_submenu_page( $path, __( \'Drafts\' ), sprintf( __( \'Drafts <span class="update-plugins" title="Drafts"><span class="update-count">%d</span></span>\' ), $num_posts->draft ), $post_type->cap->edit_posts, "edit.php?post_type=$name&post_status=draft" );
- add_submenu_page( $path, __( \'Pending\' ), sprintf( __( \'Pending (%d)\' ), $num_posts->pending ), $post_type->cap->edit_posts, "edit.php?post_type=$name&post_status=pending" );
+ add_submenu_page( $path, __( \'Pending\' ), sprintf( __( \'Pending <span class="update-plugins" title="Pending"><span class="update-count">%d</span></span>\' ), $num_posts->pending ), $post_type->cap->edit_posts, "edit.php?post_type=$name&post_status=pending" );
- add_submenu_page( $path, __( \'future\' ), sprintf( __( \'future (%d)\' ), $num_posts->future ), $post_type->cap->edit_posts, "edit.php?post_type=$name&post_status=future" );
+ add_submenu_page( $path, __( \'Future\' ), sprintf( __( \'Future <span class="update-plugins" title="Future"><span class="update-count">%d</span></span>\' ), $num_posts->future ), $post_type->cap->edit_posts, "edit.php?post_type=$name&post_status=future" );
唯一需要注意的是,插件的要求被打乱了,因此您会收到关于兼容性的警告:
要求:2.0.2或更高
兼容:1.0.1
然而,描述中明确表示它与WP3兼容。0+。
<小时/>Figure 1: 快速查看后访问
Figure 2: 快速查看访问后修改