Define the Search Columns
The searchable columns are defined just as the sortable columns are defined, using the same syntax. For convenience, it is defined directly after the get_sortable_columns() function.
1 2 3 4 5 6 7 8 9 10 11 12 13 | function get_searchable_columns() { $searchable_columns = array( ‘time’ => ‘Date / Time (GMT)’, ‘ip’ => ‘IP Address’, ‘username’ => ‘User Name’, ‘password’ => ‘Password’, ‘platform’ => ‘Platform’, ‘userAgent’ => ‘User Agent’ ); return( $searchable_columns ); } |
The short URL of the present article is: http://www.terryobrien.me/Oodqa
Personal Links