I’m trying to create a submenu page for reordering posts/pages.
Right now I’m trying to include the list that display the different post statuses, for example:
All (5) | Published (4) | Draft (1)
I was digging around in edit.php and found that it pulls the list like this:
$wp_list_table->views();
Which lead me to class-wp-list-table.php where I found this:
function views() {
$screen = get_current_screen();
$views = $this->get_views();
$views = apply_filters( 'views_' . $screen->id, $views );
if ( empty( $views ) )
return;
echo "<ul class="subsubsub">\n";
foreach ( $views as $class => $view ) {
$views[ $class ] = "\t<li class="$class">$view";
}
echo implode( " |</li>\n", $views ) . "</li>\n";
echo "</ul>";
}
So, since it checks the current screen, would it be possible in someway to set my custom submenu item to “pose” as edit.php although it’s not?
Or if there’s some easier way to do this.
Thanks alot in advance