Look at this code
public function column_default( $item, $column_name ) {
switch ( $column_name ) {
case 'address':
case 'city':
return $item[ $column_name ];
default:
return print_r( $item, true ); //Show the whole array for....
}
}
Since you are only trying to render user_id
, browser
and ip_address
and those are not available in the switch case which defaults to default case and default case prints the whole array of the item like this( return print_r( $item, true );
)
Related Posts:
- How To Make Connection To WordPress Data Base In A Plugin?
- WordPress get pagination on wpdb get_results
- Accessing data from a non-WP database/table within a page content
- Sum the total amount of a specific product purchased per user and display in table
- Query the links Database
- Insert double entry in DB
- MySQL update text field with ‘
- Fatal error: Call to undefined function mysql_connect()
- the_date() not working
- How to return number of found rows from SELECT query
- Static Frontpage Pagination – Custom loop
- Custom SQL query to get List of posts with featured image url
- Delete post revisions on post publish
- Using Echo in ShortCode – Stuck
- Problems migrating WordPress to localhost
- error importing localhost export file to server
- How to sort results from a custom database table
- Update some database fields when post is saved
- How to check if comments are paginated?
- sql query to put quotes around numbers in img tag
- No wp-config.php file on local install of wordpress – site still displays
- Use ajax to update_post_meta
- Getting rid of role=”navigation” in the Home Page Pagination
- Strange wordpress slowness
- Setting All Drafts to ‘exclude-from-catalog’ in WooCommerce
- How to securely provide a $_POST var in WP_Query with PHP 7?
- Create WP_Query to search for posts by their categories or their parent/child categories
- WSoD being caused by this piece of code
- Unreadable pagination
- How to display data from custom table in wordpress phpmyadmin
- get_terms pagination
- get_posts() and WP_query limits ‘AND’ conditions to a maximum of 6 for meta value queries in WordPress
- Replacing mysql_escape_string in a custom plugin when moving to PHP7
- $wpdb->insert() does not Insert record in a table
- WordPress SQL injection
- How to get all author posts outside of author templates
- Grouping posts by a custom meta value
- Next post link on a bootstrap button
- Mixing variables into an array when inserting values
- Should I use WordPress to skin a database website?
- WordPress Custom SQL Table with UserID Filter for results
- How can I add a new row in a separate database when someone registers via WordPress?
- ACF Repeater Pagination stopped working since upgrade to php7.2
- Output: “Array”
- How to use mysql LIKE with wpdb?
- Custom query vars filters problem with pagination
- speed up pagination for huge database
- How to use AJAX in WordPress in MYSQL query?
- Use variable in SQL statement
- Live search from database table
- Processing ajax call to php to insert into mysql database
- WordPress pagination not working in search result page
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- Remove Post if Advanced Custom Field is checked to fix paging
- How to add PHP pagination to wordpress
- How to create Loop code for Menu using WordPress?
- Pagination stays on same page for post category
- WordPress Custom Query: Combining Two Functions
- MySQL Query Returns Array () In Shortcode
- Passing in MySQL prepare statement parameter separately throwing error
- Convert a column of a table containing an Array as response in HTML
- Database SQL query error
- Error establishing a database connection (Set-up locally)
- Pagination contents not changing in Front page WordPress
- Load more posts using AJAX based on posts inside WP_Query
- How to stop hiding buttons forward / backward in pagination?
- How to make a pagination with dropdown selection?
- MYSQL TIMESTAMP when adding DATE_FORMAT then the output is blank, PHP conflict?
- Updated Php version from 5.4 to 7.2 and getting “PHP installation missing the MySQL extension needed by WordPress”
- Passing Current User ID into SQL statement
- How to optimize and reduce excessive database queries
- How to insert multiple rows and columns in database using array
- Store GA Client ID in User DB
- PHP 7.2.18 | Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- Windows Setup: Error establishing a database connection
- Need help with format of nested array in MySQL
- Top Authors list by highest post views with Ajax pagination
- WAMP SERVER Command Prompt SET PATH=%PATH%
- Inserting other fields to existing registration form in a WordPress theme
- Advanced WordPress SQL Query
- Splitting table data to pages with numbers
- How can get all users by current user meta (array)?
- Site doesnt work once PHP changed to 7.1
- How to detect if a revision was made by woocommerce or wordpress?
- WordPress WPDB::insert 13th param is always blank (only if format)
- Ajax not updating to database
- can’t delete a row from post_meta table
- MySQL query in WordPress with AJAX
- Change colour of table td based on value
- Processing forms with php to wordpress database
- How to connect database table to each registered wordpress user.
- retrieve wordpress post-meta using php not wordpress functions
- Splash pages on a high traffic site
- Pagination not displaying
- Pagination in category.php not functioning
- I am unable to fetch json data from wp_db
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- What does this if-statement do?: if($pages=’ ‘) {}
- Execute multiple PHP Snippets causes error?
- Can’t insert into a database wordpress