... | ... |
@@ -32,9 +32,7 @@ class admin_list_table extends WP_List_Table { |
32 | 32 |
$sql .= " LIMIT $per_page"; |
33 | 33 |
$sql .= ' OFFSET ' . ($page_number - 1) * $per_page; |
34 | 34 |
|
35 |
- $result = $wpdb->get_results($sql, 'ARRAY_A'); |
|
36 |
- |
|
37 |
- return $result; |
|
35 |
+ return $wpdb->get_results($sql, 'ARRAY_A'); |
|
38 | 36 |
} |
39 | 37 |
|
40 | 38 |
public function delete_item($id) { |
... | ... |
@@ -60,7 +60,7 @@ class admin_table_plugin { |
60 | 60 |
} |
61 | 61 |
|
62 | 62 |
public function admin_menu() { |
63 |
- $hook = add_menu_page('페이지 상단제목', '버튼이름2', 'manage_options', 'admintable', |
|
63 |
+ $hook = add_menu_page('관리자 리스트 테이블', '리스트 테이블', 'manage_options', 'admintable', |
|
64 | 64 |
array($this, 'admin_page'), 'dashicons-admin-post'); |
65 | 65 |
|
66 | 66 |
add_action("load-$hook", array($this, 'screen_option')); |
... | ... |
@@ -79,7 +79,7 @@ class admin_table_plugin { |
79 | 79 |
} |
80 | 80 |
|
81 | 81 |
public function admin_page() { |
82 |
- echo '<div class="wrap"><h2>My List Table Test</h2>'; |
|
82 |
+ echo '<div class="wrap"><h2>리스트 테이블 예제</h2>'; |
|
83 | 83 |
echo '<form method="post">'; |
84 | 84 |
|
85 | 85 |
$this->_tablelist->prepare_items(); |