/** * Output the settings. */ public function output() { global $current_section; if ('webhooks' == $current_section) { WC_Admin_Webhooks::page_output(); } elseif ('keys' === $current_section) { WC_Admin_API_Keys::page_output(); } else { $settings = $this->get_settings($current_section); WC_Admin_Settings::output_fields($settings); } }
?> </p> </td> </tr> </tbody> </table> </div> <div id="webhook-logs" class="settings-panel"> <h3><?php _e('Webhook Logs', 'woocommerce'); ?> </h3> <?php WC_Admin_Webhooks::logs_output($webhook); ?> </div> <script type="text/javascript"> jQuery( function ( $ ) { $( '#webhook-options #webhook_topic' ).on( 'change', function() { var current = $( this ).val(), action_event_field = $( '#webhook-options #webhook-action-event-wrap' ), custom_topic_field = $( '#webhook-options #webhook-custom-topic-wrap' ); action_event_field.hide(); custom_topic_field.hide(); if ( 'action' === current ) { action_event_field.show();
<th><?php _e('Date', 'woocommerce'); ?> </th> <th><?php _e('URL', 'woocommerce'); ?> </th> <th><?php _e('Request', 'woocommerce'); ?> </th> <th><?php _e('Response', 'woocommerce'); ?> </th> </tr> </tfoot> <tbody> <?php foreach ($logs as $log) { $log = $webhook->get_delivery_log($log->comment_ID); include 'html-webhook-log.php'; } ?> </tbody> </table> <?php echo WC_Admin_Webhooks::get_logs_navigation($total, $webhook);