• 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_API_Request_Log_Table::column_default() – This function renders most of the columns in the list table.

You appear to be a bot. Output may be restricted

Description

This function renders most of the columns in the list table.

Usage

$string = EDD_API_Request_Log_Table::column_default( $item, $column_name );

Parameters

$item
( array ) required – Contains all the data of the api request
$column_name
( string ) required – The name of the column

Returns

string Column Name

Source

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

1 to 8 of 8
  public function column_default( $item, $column_name ) {
    switch ( $column_name ) {
      case 'ip':
        return '<a href="' . esc_url( 'https://ipinfo.io/' . esc_attr( $item['ip'] ) ) . '" target="_blank" rel="noopener noreferrer">' . esc_html( $item['ip'] ) . '</a>';
      default:
        return $item[ $column_name ];
    }
  }
 

 View on GitHub View on Trac

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

Primary Sidebar

Information

Function name: EDD_API_Request_Log_Table::column_default
Class ref: EDD_API_Request_Log_Table
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/admin/reporting/class-api-requests-logs-list-table.php
File ref: includes/admin/reporting/class-api-requests-logs-list-table.php
Deprecated?: No
API Letters: A,E,L,R,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