Esempio n. 1
0
    wp_redirect(add_query_arg('paged', $total_pages));
    exit;
}
$title = $post_type_object->labels->name;
?>
 <div class="wrap">
    <?php 
screen_icon();
?>
    <h2><?php 
_e('Sales Log', WPI);
?>
</h2>
 
    <?php 
WPI_Functions::print_messages();
?>

    <?php 
$wp_list_table->views();
?>

    <form id="posts-filter" action="" method="get">
      <?php 
$wp_list_table->search_box($post_type_object->labels->search_items, 'post');
?>
      <input type="hidden" name="post_status" class="post_status_page" value="<?php 
echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all';
?>
" />
      <input type="hidden" name="post_type" class="post_type_page" value="<?php 
Esempio n. 2
0
 /**
  * Render overview list UI
  */
 public static function render_overview()
 {
     global $list_table;
     $list_table->prepare_items();
     do_action('wpi_before_overview');
     WPI_Functions::print_messages();
     $list_table->display();
 }