• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / EDD_Gateway_Error_Log_Table::column_message() – Output Error Message Column

You appear to be a bot. Output may be restricted

Description

Output Error Message Column

Usage

$void = EDD_Gateway_Error_Log_Table::column_message( $item );

Parameters

$item
( array ) required – Contains all the data of the log

Returns

void

Source

File name: easy-digital-downloads/includes/admin/reporting/class-gateway-error-logs-list-table.php
Lines:

1 to 26 of 26
  public function column_message( $item ) {
  ?>
		<a href="#TB_inline?width=640&inlineId=log-message-<?php echo $item['ID']; ?>" class="thickbox"><?php _e( 'View Log Message', 'easy-digital-downloads' ); ?></a>
		<div id="log-message-<?php echo $item['ID']; ?>" style="display:none;">
			<?php

      $log_message = get_post_field( 'post_content', $item['ID'] );
      $serialized  = strpos( $log_message, '{"' );

      // Check to see if the log message contains serialized information
      if ( $serialized !== false ) {
        $length = strlen( $log_message ) - $serialized;
        $intro  = substr( $log_message, 0, - $length );
        $data   = substr( $log_message, $serialized, strlen( $log_message ) - 1 );

        echo wpautop( $intro );
        echo '<strong>' . wpautop( __( 'Log data:', 'easy-digital-downloads' ) ) . '</strong>';
        echo '<div style="word-wrap: break-word;">' . wpautop( $data ) . '</div>';
      } else {
        // No serialized data found
        echo wpautop( $log_message );
      }
      ?>
		</div>
	<?php
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th November 2019

Primary Sidebar

Information

Function name: EDD_Gateway_Error_Log_Table::column_message
Class ref: EDD_Gateway_Error_Log_Table
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/admin/reporting/class-gateway-error-logs-list-table.php
File ref: includes/admin/reporting/class-gateway-error-logs-list-table.php
Deprecated?: No
API Letters: E,G,L,T

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites