WC_Admin_Log_Table_List::context_row()
Render the additional table row that contains extra log context data.
Method of the class: WC_Admin_Log_Table_List{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->context_row( $log );
- $log(array) (required)
- Log entry data.
WC_Admin_Log_Table_List::context_row() WC Admin Log Table List::context row code WC 9.7.1
<?php protected function context_row( $log ) { // Maintains alternating row background colors. ?> <tr style="display: none"><td></td></tr> <tr id="log-context-<?php echo esc_attr( $log['log_id'] ); ?>" class="log-context"> <td colspan="<?php echo esc_attr( $this->get_column_count() ); ?>"> <p><strong><?php esc_html_e( 'Additional context', 'woocommerce' ); ?></strong></p> <pre><?php echo esc_html( $log['context'] ); ?></pre> </td> </tr> <?php }