| @@ 61-74 (lines=14) @@ | ||
| 58 | /** |
|
| 59 | * Table list output. |
|
| 60 | */ |
|
| 61 | private static function table_list_output() { |
|
| 62 | echo '<h2>' . __( 'Keys/Apps', 'woocommerce' ) . ' <a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=api§ion=keys&create-key=1' ) ) . '" class="add-new-h2">' . __( 'Add Key', 'woocommerce' ) . '</a></h2>'; |
|
| 63 | ||
| 64 | $keys_table_list = new WC_Admin_API_Keys_Table_List(); |
|
| 65 | $keys_table_list->prepare_items(); |
|
| 66 | ||
| 67 | echo '<input type="hidden" name="page" value="wc-settings" />'; |
|
| 68 | echo '<input type="hidden" name="tab" value="api" />'; |
|
| 69 | echo '<input type="hidden" name="section" value="keys" />'; |
|
| 70 | ||
| 71 | $keys_table_list->views(); |
|
| 72 | $keys_table_list->search_box( __( 'Search Key', 'woocommerce' ), 'key' ); |
|
| 73 | $keys_table_list->display(); |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * Get key data. |
|
| @@ 405-418 (lines=14) @@ | ||
| 402 | /** |
|
| 403 | * Table list output. |
|
| 404 | */ |
|
| 405 | private static function table_list_output() { |
|
| 406 | echo '<h2>' . __( 'Webhooks', 'woocommerce' ) . ' <a href="' . esc_url( wp_nonce_url( admin_url( 'admin.php?page=wc-settings&tab=api§ion=webhooks&create-webhook=1' ), 'create-webhook' ) ) . '" class="add-new-h2">' . __( 'Add Webhook', 'woocommerce' ) . '</a></h2>'; |
|
| 407 | ||
| 408 | $webhooks_table_list = new WC_Admin_Webhooks_Table_List(); |
|
| 409 | $webhooks_table_list->prepare_items(); |
|
| 410 | ||
| 411 | echo '<input type="hidden" name="page" value="wc-settings" />'; |
|
| 412 | echo '<input type="hidden" name="tab" value="api" />'; |
|
| 413 | echo '<input type="hidden" name="section" value="webhooks" />'; |
|
| 414 | ||
| 415 | $webhooks_table_list->views(); |
|
| 416 | $webhooks_table_list->search_box( __( 'Search Webhooks', 'woocommerce' ), 'webhook' ); |
|
| 417 | $webhooks_table_list->display(); |
|
| 418 | } |
|
| 419 | ||
| 420 | /** |
|
| 421 | * Logs output. |
|